[Freeciv-Dev] Re: (PR#4231) mingw32 & sdl client
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients:; |
Subject: |
[Freeciv-Dev] Re: (PR#4231) mingw32 & sdl client |
From: |
"Rafa³ Bursig" <bursig@xxxxxxxxx> |
Date: |
Thu, 15 May 2003 06:16:51 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
Dnia 2003.05.15 01:20, Per I. Mathisen napisa³(a):
>
> Well, graphics.c now compiled. But more exciting errors showed up!
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include
> -I../../common -I../../common/aicore -I../../intl -I./../agents
> -I/usr/local/include/SDL -Dmain=SDL_main -I/d/Program\
> Files/GnuWin32/include -I/d/Program\ Files/GnuWin32/include/freetype2
> -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -c `test -f 'gui_iconv.c' || echo
> './'`gui_iconv.c
> gui_iconv.c: In function `convert_to_utf16':
> gui_iconv.c:120: warning: passing arg 2 of `libiconv' from
> incompatible
> pointer type
> gui_iconv.c: In function `convertcopy_to_utf16':
> gui_iconv.c:197: warning: passing arg 2 of `libiconv' from
> incompatible
> pointer type
> gui_iconv.c: In function `convert_to_chars':
> gui_iconv.c:277: warning: passing arg 2 of `libiconv' from
> incompatible
> pointer type
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I./.. -I./../include
> -I../../common -I../../common/aicore -I../../intl -I./../agents
> -I/usr/local/include/SDL -Dmain=SDL_main -I/d/Program\
> Files/GnuWin32/include -I/d/Program\ Files/GnuWin32/include/freetype2
> -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
> -Wmissing-declarations -c `test -f 'gui_main.c' || echo
> './'`gui_main.c
> gui_main.c: In function `gui_main_loop':
> gui_main.c:158: storage size of `tv' isn't known
> gui_main.c:159: `fd_set' undeclared (first use in this function)
> gui_main.c:159: (Each undeclared identifier is reported only once
> gui_main.c:159: for each function it appears in.)
> gui_main.c:159: parse error before "civfdset"
> gui_main.c:177: warning: implicit declaration of function `FD_ZERO'
> gui_main.c:177: `civfdset' undeclared (first use in this function)
> gui_main.c:178: warning: implicit declaration of function `FD_SET'
> gui_main.c:182: warning: implicit declaration of function `select'
> gui_main.c:190: warning: implicit declaration of function `FD_ISSET'
> gui_main.c:158: warning: unused variable `tv'
> make[4]: *** [gui_main.o] Error 1
>
Per. this is problem of headers.
Those functions and macros are normal used in gui-win32.
IMHO it requ. additionaly headers but I don't know which.
Try add somthing like this at front of gui-sdl/gui_main.c
#ifdef WIN32_NATIVE
#include <winsock.h> or #include <windowsx.h> or ... look to
gui-win32/gui_main.c
#endif
Rafal
[Freeciv-Dev] Re: (PR#4231) mingw32 & sdl client, Per I. Mathisen, 2003/05/15
[Freeciv-Dev] Re: (PR#4231) mingw32 & sdl client, Per I. Mathisen, 2003/05/29
|
|