How do I use SDL with gcc on Windows?
You can build and use SDL with gcc natively using either Cygwin or MinGW, or you can build a gcc cross-compiler targeting Windows from another platform. Setting up these environments is documented at: http://www.libsdl.org/extras/win32/gcc.html Once the build environment is set up, you can build your applications as though you are on UNIX. See the Linux FAQ for more details on building applications in this environment.