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

On 1/21/07, Christian Prochaska <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] - Sa 20. Jan 2007, 13:33:05]:
> >
> >  'man round' says "Compile with -std=c99; link with -lm." But when I
> > try to set '-std=c99', log.c no longer compiles.
> >
>
> 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

if gcc -DHAVE_CONFIG_H -I. -I../../src.patched/utility -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 -Werror -Wall -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -I/usr/include/SDL
-D_REENTRANT -fsigned-char -MT log.o -MD -MP -MF ".deps/log.Tpo" -c -o
log.o ../../src.patched/utility/log.c; \
        then mv -f ".deps/log.Tpo" ".deps/log.Po"; else rm -f
".deps/log.Tpo"; exit 1; fi
cc1: warnings being treated as errors
../../src.patched/utility/log.c: In function 'log_init':
../../src.patched/utility/log.c:186: warning: implicit declaration of
function 'strdup'
../../src.patched/utility/log.c:186: warning: assignment makes pointer
from integer without a cast
make[3]: *** [log.o] Error 1


 - ML



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

Reply via email to