[SDL] cross-compiling woes

Martin Storsjö martin at martin.st
Tue Jan 18 10:53:49 PST 2005

Did you remember to link with SDLmain? When I'm compiling with Mingw, I 
use the following linker flags:
-lmingw32 -lSDLmain -lSDL

// Martin

On Mon, 17 Jan 2005, Paul Pelzl wrote:

> /usr/lib/gcc/i586-mingw32msvc/3.4.2/../../../../i586-mingw32msvc/lib/libmingw32.a(main.o)(.text+0xf4):
> undefined reference to `_WinMain at 16'
> collect2: ld returned 1 exit status

More information about the SDL mailing list