what is worng with this?
//focus on sdl
//fosdl1_1.cpp
//16APR2002
//ernest pazera
//requires static linkage to:
//sdl.lib, sdlmain.lib
//requires dynamic linkage to:
//sdl.dll
//include SDL stuff
#include "sdl.h"
//include ability to print to files
#include <stdio.h>
//main function
int main(int argc, char* argv[])
{
//initialize SDL
if (SDL_Init(SDL_INIT_VIDEO)==-1)
{
//error initializing SDL
//report the error
fprintf(stderr,"Could not initialize SDL!\n");
}
else
{
//SDL initialized
//report success
fprintf(stdout,"SDL initialized properly!\n");
//quit SDL
SDL_Quit();
}
//return 0
return(0);
}
i get this error:
Info :fosdl1_1.cpp: build due to .OBJ dependency D:\BC5\INCLUDE\SDL_version.h
Info : fosdl1_1.cpp: cached age 2:51:13 PM 4/14/2002 file age <unknown>
Info :Compiling C:\FO_SDL\EXAMPLES\FOSDL1_1\fosdl1_1.cpp
Warn : fosdl1_1.cpp(43,2):Parameter 'argc' is never used
Warn : fosdl1_1.cpp(43,2):Parameter 'argv' is never used
Info :Linking C:\FO_SDL\EXAMPLES\FOSDL1_1\fosdl1_1.exe
Error: Error: Unresolved external '_main' referenced from D:\BC5\LIB\C0X32.OBJ