Skip to main content
gamedev.net
🔒 Locked

code help

Started by liquid_ice_programmer Mar 14, 2003 at 7:05 AM 3 replies 200+ views
Original Post
liquid_ice_programmer
liquid_ice_programmer
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 Info :Compiling C:\FO_SDL\EXAMPLES\FOSDL1_1\fosdl1_1.cpp Warn : fosdl1_1.cpp(43,2)arameter ''argc'' is never used Warn : fosdl1_1.cpp(43,2)arameter ''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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.