|
From: Carlos d. M. <cg...@wo...> - 2002-11-17 16:57:53
|
Use this order of the options: -lmingw32 -lSDLmain -lSDL (now I've the fe= eling that I used these because the other gave errors). And -mwindows isn't nee= ded, but you can use it. Matthews escribi=F3: > Ok, the project is now a console application. Linker options are: -lsd= l > -lsdlmain -lmingw32 -mwindows. The program is the one copied straight = from > the documentation, and I'm still getting the linker error. > > At 11:54 AM 14/11/2002 +0100, you wrote: > >> > >> ----- > >> Hmm, I added all those options to my linker (-lsdl -lsdlmain -lmingw= 32) and > >> I still have the same error (Unknows reference to `WinMain@16'). I'= m also > >> compiling as a windows app, with the "int argc, char *argv[]" that's > >> required, and I've included the -mwindows tag in the linker command = line. > >> ---- > > > >Ahem, sorry I forgot to answer this second question (I usually read fi= rst all > >new messages and after that I answer). Compile it as console, that's w= hat > I do. > >And that's what you need since int argc, char *argv[], for windows app= s, you > >use int WINAPI WinMain(HINSTANCE etc > > > > |