[SDL] SDL and IDEs in Windows

Sebastian Beschke s.beschke at gmx.de
Tue Nov 4 11:24:01 PST 2003

Mikkel Gjøl wrote:

> William Clayton wrote:
>> Sample errors:
>> */Dev C++:/*
>> [Linker error] undefined reference to `WinMain at 16' <mailto:`WinMain at 16'>
>> /AND:/
>>  C:\Program Files\Dev-C++\Dev-Cpp\Piano\Makefile.win
>> [Build Error]  [Audio.exe] Error 1
> You need to link both SDL.lib, and SDLmain.lib into the program.
> Regards,
> \\Mikkel Gjoel
Let me add that on my system (Dev-C++), it's important to write the 
-lSDLmain before -lSDL, or I get the exact same error that you describe. 
So, try that.

Does anyone on this list know the cause for this behaviour?


More information about the SDL mailing list