[SDL] Compilation with Mingw on Win32
kokido at postmark.net
Tue Aug 15 10:43:55 PDT 2000
There is another library you have to include, the one that makes it so
that you are making a windows app instead of a console one, I just
can't remember off the top of my head what lib that is. I think the
demo program that comes with mingw32 uses it though. Maybe some nice
person in this list will refresh my memory for you :)
Alberto Luaces wrote:
> I'm trying to compile the SDL test programs with the Mingw compiler by
> gcc testsprite.c -I[SDL_include_directory] -L[SDL_libs] -lsdl
> but I get this error:
> [...]libmingw32.a(main.o)(.text+0x8e): undefined reference to 'WinMain at 16'
> I'm using the 2.95.2 MSVCRT version. Do I need the CRTDLL version instead?
> (Sorry if someone had answered this before)
More information about the SDL