[SDL] is SDL supposed to be using WinMain?

Torsten Giebl wizard at syntheticsw.com
Fri Sep 7 13:57:48 PDT 2007


Hello !


>> i'm using some code that works with SDL and i get an exception at
>> runtime that i'm trying to debug. i'm very new to the debugger and am
>> learning by trial and error in visual studio 2005 as we speak.
>>
>
> Last time I used it you needed to include windows.h, in MinGW you need
> to link with -lmingw at the start of the list or you get errors about
> winmain. Either way, it seems to be a requirement for Windows programs.


SDL internally needs these system specific main functions.
But SDL uses ways so that the normal coder can use the portable
int main (int argc, char *argv ()] way on most/all OSes.

This thing is in libSDLmain.


CU



More information about the SDL mailing list