Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9534) ftwl warnings and errors when compiling with min
Home

[Freeciv-Dev] (PR#9534) ftwl warnings and errors when compiling with min

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9534) ftwl warnings and errors when compiling with mingw
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Wed, 28 Jul 2004 16:03:30 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9534 >

On WinXP with mingw, after ./autogen.sh --enable-ftwl=sdl and make:

if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../../utility  -I../../intl
-I/usr/include/freetype2   -I/gnuwin32/include -I/SDL/include
-I/SDL/include/SDL -I/local/include -I/ode/include  -g -O2 -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-MT be_sdl.o -MD -MP -MF ".deps/be_sdl.Tpo" -c -o be_sdl.o be_sdl.c; \
then mv -f ".deps/be_sdl.Tpo" ".deps/be_sdl.Po"; else rm -f
".deps/be_sdl.Tpo"; exit 1; fi
In file included from be_sdl.c:24:
back_end.h:148: warning: `struct timeval' declared inside parameter list
back_end.h:148: warning: its scope is only this definition or
declaration, which is probably not what you want
be_sdl.c:200: warning: `struct timeval' declared inside parameter list
be_sdl.c:201: error: conflicting types for `be_next_event'
back_end.h:148: error: previous declaration of `be_next_event'
be_sdl.c: In function `be_next_event':
be_sdl.c:209: error: dereferencing pointer to incomplete type
be_sdl.c:209: error: dereferencing pointer to incomplete type
be_sdl.c:214: error: `fd_set' undeclared (first use in this function)
be_sdl.c:214: error: (Each undeclared identifier is reported only once
be_sdl.c:214: error: for each function it appears in.)
be_sdl.c:214: error: parse error before "readfds"
be_sdl.c:216: error: storage size of `zero_timeout' isn't known
be_sdl.c:219: warning: implicit declaration of function `FD_ZERO'
be_sdl.c:219: error: `readfds' undeclared (first use in this function)
be_sdl.c:220: error: `exceptfds' undeclared (first use in this function)
be_sdl.c:222: warning: implicit declaration of function `FD_SET'
be_sdl.c:228: warning: implicit declaration of function `select'
be_sdl.c:229: warning: implicit declaration of function `FD_ISSET'
be_sdl.c:216: warning: unused variable `zero_timeout'
make[3]: *** [be_sdl.o] Error 1
make[3]: Leaving directory `/dev/freeciv/freeciv-mod/utility/ftwl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/dev/freeciv/freeciv-mod/utility'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/freeciv/freeciv-mod'
make: *** [all] Error 2

-James Canete


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9534) ftwl warnings and errors when compiling with mingw, James Canete <=