How to write Win32 apps with SDL and Mingw32?


I got the OpenGl intro programs from the SDl home page that actualy are the
ports of the Nehe tutorials. I can compile and run in linux both versions of
the programs, the sdl and glut versions. But in windows using the mingw32
compiler form Mumit’s Kahn i can only get the glut version of the programs
running,when i compile the sdl verion it complains saying:

libmingw32.a(main.o)(.text+08xe): undefined reference…

i think i have to do the import library stuff mentioned in the
cross-compiler how to but i wonder if there are pre-compiled libraries of
libSDLmain.lib etc…

Horacio Sanson