[SDL] Why is it that SDL won't work with a console application?

Manuel García Cabrera manugarciac5 at yahoo.com.ar
Sat May 5 19:45:43 PDT 2007


Lilith Calbridge escribió:
> Did you include SDLMAIN.LIB in your project's Link/General settings?
> 
> Lilith
> 
>>>> On 5/5/2007 at 8:00 PM, Manuel García Cabrera <manugarciac5 at yahoo.com.ar>
> wrote:
>> Whenever I include SDL.h on a Win32 console application I get the
>> following error:
>>
>> IBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
>> Debug/MyProject.exe : fatal error LNK1120: 1 unresolved externals
>>
>>
>> I'm using VC++ 6 by the way.
>> _______________________________________________
>> SDL mailing list
>> SDL at lists.libsdl.org 
>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> 
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> 
Yes, I did.


More information about the SDL mailing list