compilation of statist under cygwin
sfronzek@gmx.net
sfronzek at gmx.net
Mon Mar 29 12:43:33 CEST 2004
Hi Andreas and Bernhard,
thanks for your replies. With your suggestions, I managed to compile
statist; however, about 200 warnings were issued similar to
"plot.c:434: warning: passing arg 1 of `out_err' makes pointer from integer
without a cast"
And, even worse, the program now crashes each time I try to read in some
data.
Stefan
> GNU lib-C doc says, that errno is defined in errno.h:
>
http://www.gnu.org/software/libc/manual/html_node/Checking-for-Errors.html#Checking%20for%20Errors
>
> errno.h is not explicitely included in statist.h, where errno is used.
> Apparently this bug remained undetected, because errno.h gets included
> by other header files on other platforms.
> Add the line
> #include <errno.h>
> at the beginning of statist.h and iodefs.c. Does that help?
>
> Andreas
>
> sfronzek at gmx.net wrote:
>
> > Hello all,
> >
> > I am having problems to compile statist (v1.0.1) under cygwin, please
> see
> > the error messages below. The same error messages occur also with the
> -DMSDOS
> > flag. Can anybody help?
> >
> > Best regards,
> > Stefan
> >
> >
> > [fronzek at KK450 ...statist/src]$ gcc -v
> > Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
> > gcc version 2.95.3-5 (cygwin special)
> >
> > [fronzek at KK450 ...statist/src]$ make
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN statist.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN menue.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN procs.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN funcs.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN data.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN plot.c
> > gcc -c -Wall -DNO_GETTEXT -DLANG=LANG_EN -c -o memory_handling.o
> > memory_handling.c
> > gcc -o statist statist.o menue.o procs.o funcs.o data.o plot.o
> > memory_handling.o
> > -lm
> > statist.o(.text+0x59b):statist.c: undefined reference to `errno'
> > statist.o(.text+0x753):statist.c: undefined reference to `errno'
> > menue.o(.text+0x410c):menue.c: undefined reference to `errno'
> > menue.o(.text+0x4238):menue.c: undefined reference to `errno'
> > menue.o(.text+0x495a):menue.c: undefined reference to `errno'
> > menue.o(.text+0x4aef):menue.c: more undefined references to `errno'
> follow
> > collect2: ld returned 1 exit status
> > make: *** [statist] Error 1
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)