[SDL] Question on SDL on mingw32

Sam Lantinga slouken at devolution.com
Tue Jul 3 20:09:04 PDT 2007


> COMPILE
> -------
> $ gcc -I/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -lmingw32 -L/local/l
> ib -lSDLmain -lSDL -mwindows SDL_wave4.c -o SDL_wave4

Hey, I added this to the FAQ:
http://www.libsdl.org/faq.php?action=listentries&category=4#88

When you're compiling with gcc, you need to make sure the output of sdl-config follows your source file on the command line:
gcc -o test test.c `sdl-config --cflags --libs`

See ya!
	-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment


More information about the SDL mailing list