How do i compile an sdl .c file? what are the parameters for mingw32 (DevC++)

2006/3/3, Eren Ezg? :

i still get the error
[Linker error] undefined reference to `WinMain at 16’
with -lsdl and -lsdlmain parameters.
the library path may be the reason but i ve copied the .a files in the lib
directory to the lib directory of devc++. (also the include files and bin
files to the same named folders). is there a problem about that?

Have you tried linking with “-lmingw32 -lSDLmain -lSDL”? I don’t know if
the -lmingw32 is required anymore, but at least it was earlier.

// Martin

thanks. i got the same answer from somewhere else too and i can compile now.

thanks to anyone here.

2006/3/5, Martin Storsj? :>

2006/3/3, Eren Ezg? <@Eren_Ezgu>:

i still get the error
[Linker error] undefined reference to `WinMain at 16’
with -lsdl and -lsdlmain parameters.
the library path may be the reason but i ve copied the .a files in the
lib
directory to the lib directory of devc++. (also the include files and
bin
files to the same named folders). is there a problem about that?

Have you tried linking with “-lmingw32 -lSDLmain -lSDL”? I don’t know if
the -lmingw32 is required anymore, but at least it was earlier.

// Martin


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


http://www.cprogramlama.com.tr.tc