okay, I'm having a problem with SDL that should be an easy one for anyone who uses it to solve -> I #include "SDL.h" at the beginning of my program, that works fine, but I wrote the following function
int initialize(void)
{
if(SDL_Init(SDL_INIT_VIDEO))
{
cout<<"Could not initialize SDL Video";
exit(1);
}
screen = SDL_SetVideoMode(1280,1024, 24, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_FULLSCREEN);
if ( screen == NULL ) {
fprintf(stderr, "Unable to set requested video mode: %s\n", SDL_GetError());
exit(1);
}
return 0;
}
which is mostly code from the SDL site...it compiles fine, but I get the following linker errors...
MAIN.OBJ : error LNK2001: unresolved external symbol _SDL_GetError
MAIN.OBJ : error LNK2001: unresolved external symbol _SDL_SetVideoMode
MAIN.OBJ : error LNK2001: unresolved external symbol _SDL_Init
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/3D Engine.exe : fatal error LNK1120: 5 unresolved externals
What's wrong with it? Did I do something stupid and easily fixed (I hope)?