Jump to content
XCOMUFO & Xenocide

Compile Problems


Zyzyx

Recommended Posts

Help! When I try to compile, when it gets to main.cpp, this happens:

 

g++ -MMD -funsigned-char -Wall -Wno-deprecated-declarations -I src/lua -I src/luasqlite3 -DDEBUGMODE -DUFO_SVNVERSION=\"1098M\" -O2 -pipe -DHAVE_FREETYPE -DGLYPH_TARGET=GLYPH_TARGET_ALLEGRO -DGK_NO_LEGACY -DHAVE_DUMBOGG -DHAVE_PNG -DWIN32 -DALLEGRO_STATICLINK -I mingw-libs/include -L mingw-libs/lib -c src/main.cpp -o obj-win32/main.o
In file included from mingw-libs/include/zconf.h:283,
			 from mingw-libs/include/zlib.h:34,
			 from src/zfstream.h:15,
			 from src/main.cpp:54:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:36: error: `int Sleep' redeclared as different kind of symbol
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1995: error: previous declaration of `void Sleep(DWORD)'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:36: error: declaration of `int Sleep'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1995: error: conflicts with previous declaration `void Sleep(DWORD)'
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:36: error: expected primary-expression before "useconds"
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/unistd.h:36: error: expected `)' before "useconds"
make: *** [obj-win32/main.o] Error 1

 

The wierd thing is that it looks like the problem is with some mingw libraries, and not ufo2000 code... Ive tried both MinGW 5.1.4 and 5.1.6, same problem. Im also using MSYS-1.0.1.0 and Windows Vista. I've gotten ufo2000 to compile before, but that was months ago, just today I decided to play with the sources again, and now this is happening. Help would be appreciated, thanks.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...