<URL: http://bugs.freeciv.org/Ticket/Display.html?id=34129 >

> [EMAIL PROTECTED] - Sa 20. Jan 2007, 13:33:05]:
> 
> On 1/20/07, Christian Prochaska <[EMAIL PROTECTED]> wrote:
> >  it needs
> > __USE_ISOC99 to be defined which is the case when _GNU_SOURCE is defined
> > . Perhaps a compiler problem?
> 
>  'man round' says "Compile with -std=c99; link with -lm." But when I
> try to set '-std=c99', log.c no longer compiles.
> 
> 
>  - ML
> 

What's the error message? And how does the compiler command look like?
Here it reads:

if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../intl -Wall -Wpointer-arith
-Wcast-align -Wmissing-prototypes -Wmissing-declarations
-DLOCALEDIR="\"/usr/local/share/locale\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv:/usr/local/share/freeciv\"" 
-std=c99 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-fsigned-char -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o log.o log.c; \
        then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f ".deps/log.Tpo";
exit 1; fi

and everything compiles fine.


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to