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

SkunkGuru skunkguru at gmail.com
Sun May 6 01:25:27 PDT 2007


Manuel García Cabrera ha scritto:
> 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


How did you write your main ?
You must write like this :

int main( int argc, char **argv )

(with argc and argv arguments)


-- 
SkunkGuru


More information about the SDL mailing list