AH! I got it to work...
Code:
{
SDL_Surface *screen;
printf("Initializing SDL!\n");
if((SDL_Init(SDL_INIT_VIDEO)==-1))
{
printf("Could not initialize SDL: %s\n: SDL_GetError()");
exit(-1);
}
screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE);
if ( screen == NULL )
{
fprintf(stderr, "Couldn't set 640x480 video mode: %s\n", SDL_GetError());
exit(1);
}
Thanx for the help though.. you put in the right direction.