[SDL] Can´t link my project against SDL
Michael Stather
lists at michaelstather.com
Tue Oct 3 03:07:48 PDT 2006
Peter Mulholland schrieb:
> Hello Michael,
>
> Tuesday, October 3, 2006, 1:10:05 AM, you wrote:
>
>
>> Hi,
>>
>
>
>> I started a project using SDL, but unfortunately I couldn´t get it to
>> link with MSVC .NET 2005
>> I linked againsat both SDL.lib and SDLMain.lib but I get a linker error
>> that the "entry point has to be specified".
>> So it means it can´t find an entry point, but I do have a main method.
>> The project compiles fine until I include the SDL headers.
>> Could somebody tell me where the error is? Thanks in advance :)
>>
>
> You have used the wrong project type. You should use "Win32
> Application" (which expects a WinMain() provided by SDLmain.lib), not
> "Win32 Console Application".
>
>
Thanks, that worked :)
Now I get a warning that msvcrtd.lib conflicts with other libraries and
I should use /nodefault, do you know why this happens?
regards
Michael
More information about the SDL
mailing list