compilation of statist under cygwin
Bernhard Reiter
bernhard at intevation.de
Mon Mar 29 11:41:24 CEST 2004
Hello Stefan,
actually errno should be defined by the compiler.
Maybe adding the include will help,
try adding the following line to the top of statist.h
#include <errno.h>
Let me know the results.
Bernhard
On Mon, Mar 29, 2004 at 10:55:48AM +0200, sfronzek at gmx.net wrote:
> 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?
> [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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20040329/435618d2/attachment.bin
More information about the Statist-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)