Post by gh0ce on Mar 8, 2008 17:31:47 GMT
When I try to compile opentyrian using msys and mingw on windows vista (with the mingw vista fix), I get the following error message:
gcc -o obj/animlib.o -MMD -c --std=c99 -pedantic -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-declarations -Wno-unused -Werror -I/OpenTyrian/src/ -g -O2 -fomit-frame-pointer -DNDEBUG -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main src/animlib.c
In file included from src/animlib.c:25:
src/network.h:26:21: SDL_net.h: No such file or directory
In file included from src/animlib.c:25:
src/network.h:48: error: syntax error before '*' token
src/network.h:48: warning: type defaults to `int' in declaration of `packet_in'
src/network.h:48: warning: type defaults to `int' in declaration of `packet_out'
src/network.h:49: warning: type defaults to `int' in declaration of `packet_state_in'
src/network.h:49: warning: type defaults to `int' in declaration of `packet_state_out'
src/network.h:49: error: ISO C forbids data definition with no type or storage class
src/network.h:81: error: syntax error before '*' token
src/network.h:81: warning: function declaration isn't a prototype
src/network.h:49: warning: array 'packet_state_in' assumed to have one element
src/network.h:49: warning: array 'packet_state_out' assumed to have one element
make: *** [obj/animlib.o] Error 1
I have the SDL_net.dll and SDL.dll in the OpenTyrian folder and in the src folder (just because I didn't know where it would look for it). I am running windows vista and originally had the problem that it couldn't find cc1, but after applying the vista patch to mingw it found cc1... but is now giving me the above error. I am trying to compile revision 728 of opentyrian, using the latest mingw and msys that I could find from sourceforge. I have downloaded and installed sdl and sdl net (ie put the sdl_net.dll in the system and system32 folders and ran the installer for sdl).
any thoughts (ie did I forget something?)
Thanks
The Gh0ce_>0
gcc -o obj/animlib.o -MMD -c --std=c99 -pedantic -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-declarations -Wno-unused -Werror -I/OpenTyrian/src/ -g -O2 -fomit-frame-pointer -DNDEBUG -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main src/animlib.c
In file included from src/animlib.c:25:
src/network.h:26:21: SDL_net.h: No such file or directory
In file included from src/animlib.c:25:
src/network.h:48: error: syntax error before '*' token
src/network.h:48: warning: type defaults to `int' in declaration of `packet_in'
src/network.h:48: warning: type defaults to `int' in declaration of `packet_out'
src/network.h:49: warning: type defaults to `int' in declaration of `packet_state_in'
src/network.h:49: warning: type defaults to `int' in declaration of `packet_state_out'
src/network.h:49: error: ISO C forbids data definition with no type or storage class
src/network.h:81: error: syntax error before '*' token
src/network.h:81: warning: function declaration isn't a prototype
src/network.h:49: warning: array 'packet_state_in' assumed to have one element
src/network.h:49: warning: array 'packet_state_out' assumed to have one element
make: *** [obj/animlib.o] Error 1
I have the SDL_net.dll and SDL.dll in the OpenTyrian folder and in the src folder (just because I didn't know where it would look for it). I am running windows vista and originally had the problem that it couldn't find cc1, but after applying the vista patch to mingw it found cc1... but is now giving me the above error. I am trying to compile revision 728 of opentyrian, using the latest mingw and msys that I could find from sourceforge. I have downloaded and installed sdl and sdl net (ie put the sdl_net.dll in the system and system32 folders and ran the installer for sdl).
any thoughts (ie did I forget something?)
Thanks
The Gh0ce_>0