Compiling with Code::Block+mingw

I have converted my VC project to Code::Blocks, downloaded dev package
from SDL site and fixed all required stuff. When i try to compile I get
the error about undefined reference to WinMain at 16
I created a test SDL app using CB wizard, but I cant find what Im doing
wrong. Can somebody give me an idea about whats happening?–
http://dsgp.blogspot.com | Linux, programaci?n, juegos
Have no place I can be since I found Serenity
But you can?t take the sky from me


LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y m?viles desde 1 c?ntimo por minuto.
http://es.voice.yahoo.com

Try using

-lmingw32

in linker options.

In this case the order is important, first -lmingw32, I mean:

-lmingw32
-lSDLmain
-lSDL

Regards!

Look this:

http://www.libsdl.org/faq.php?action=listentries&category=4#58

Thanks, that solved the problem.

RCAF escribi?:> Try using

-lmingw32

in linker options.

In this case the order is important, first -lmingw32, I mean:

-lmingw32
-lSDLmain
-lSDL

Regards!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://dsgp.blogspot.com | Linux, programaci?n, juegos
Have no place I can be since I found Serenity
But you can?t take the sky from me


LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y m?viles desde 1 c?ntimo por minuto.
http://es.voice.yahoo.com