The Windows version of SDL was compiled under Linux using
http://www.libsdl.org/Xminw32/ so you can use configure,
since mingw32 lacks a
good damn bash !
I see, that makes sense, thanks.
Anyway, try something like that :
“gcc -o yourexe -mwindows
yourobjectfiles.o -lmingw32 -lSDLmain -lSDL -luser32
-lgdi32 -lwinmm -ldxguid”
I had to add -I…/include/SDL, and I told it the C
source file rather than the object file, but that works. In
fact, I can drop user32, gdi32, winmm and dxguid and it
It’s surely a problem of library precedence, you have to
put -lmingw32 -lSDLmain -lSDL in that order.
What it appears to be, is the positioning of the source
file I’m compiling in the argument list. For example:
gcc -I…/include/SDL -o a.exe -mwindows sdltest.c -lmingw32
…works fine, but:
gcc -I…/include/SDL -o a.exe -mwindows -lmingw32 -lSDLmain
…fails, with the linker error I mentioned in an earlier
Thank you very much for solving the problem.
Another question, is where do I find the
opengl32.lib/glu32.lib and associated includes for mingw32
- I’ve looked around the SDL website but I can’t find any
mention of a location to grab them from.