[SDL] SDL on MinGW -- problem with SDLMain and WinMain()
jsilicon at earthlink.net
Wed Nov 26 19:50:00 PST 2003
On to a new project now, and the team wants to make sure that all our code compiles on GCC, so I went to good old MinGW. I followed all the instructions on http://www.libsdl.org/extras/win32/mingw32/README.txt, and everything went great -- but I've ran into one problem. I'm compiling with both libsdl.a and libsdlmain.a, but GCC is still giving me grief about WinMain() not being defined. I've managed to fix the problem by compiling sdlmain.c straight-up into an object file and compiling that into the executable, but it seems a bit odd that this is what is nessecery to get SDL to work under MinGW. Has anyone seen this problem before, or should I just start over and re-install SDL and MinGW and see if it's something weird about my sorta patch-together configuration? Does anyone know of any way to fix it?
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.541 / Virus Database: 335 - Release Date: 11/14/2003
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL