[SDL] compile problem in VC++ 6 Win2k

Michael Cowart cutefuzzysquirrel at yahoo.com
Wed Aug 15 00:55:00 PDT 2001


Oops... argv is ALWAYS a double pointer...I feel
REALLY stupid. I guees I need more sleep =)

At least it isn't as bad as getting DirectX running =)

Thanks
Mike

--- Sam Lantinga <slouken at devolution.com> wrote:
> > This is probably a stupid newbie question, but I
> > couldn't find one just like it in the archives.
> 
> > The first time I tried to compile a SDL program, I
> got
> > this error in VC++ 6:
> 
> > SDLmain.lib(SDL_main.obj) : error LNK2001:
> unresolved
> > external symbol _SDL_main
> > Debug/duh.exe : fatal error LNK1120: 1 unresolved
> > externals
> 
> Make sure that you include "SDL.h" in the file
> containing
> main() and that you declare it like so:
> 
> int main(int argc, char *argv[])
> 
> See ya,
> 	-Sam Lantinga, Software Engineer, Blizzard
> Entertainment
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




More information about the SDL mailing list