Tuesday, May 20, 2008

sdl mingw

i don't use windows or mingw much but people using mingw without msys
sometimes get stuck with the linking parameters etc. so i post my sdl-config output here for reference:
sdl-config --libs:
-L/usr/local/lib -lmingw32 -lSDLmain -lSDL -mwindows
sdl-config --cflags:
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main