Hello Everyone!
Matthews wrote:
M> I have a strange error when attempting to use the SDL libraries
M> (www.libsdl.org) I've configured everything right, downloaded the complete
M> package with all the libraries, include files, etc. yet when I attempt to
M> compile the sample SDL program (with -lsdl) I get the error [Linker error]
M> Unknown reference to `WinMain@16' What's wrong?
Do you compile it as a Windows application or a console app? I guess
you try to compile it as a console app. Whenever you want to compile
Windows applications, you need to pass the -mwindows option to the
linker.
Colin Peters, Windows programming tutorial:
"That option links in a set of standard Win32 libraries and also makes
the program a "GUI" program (i.e. a program with windows) instead of a
"console" program (i.e. a command-line based program). If you forget
-mwindows..." you will get the error what you mentioned.
In Dev-cpp you need to change the project to a windows application
project.
I hope I could help. Actually this is my FIRST post to the list, I'm a
newbie.
--
Best regards,
Oroszi Balázs mailto:or...@vp...
|