SDL
Jul 18, 2013 at 12:44am UTC
I use SDL on dev-c++ and I include sdl.h. I initialize SDL and set the screen size, quality, and all that stuff. Then I use SDl_Quit. Here is the SDL code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
void SDL_Movie(){
SDL_Surface* hello = NULL;
SDL_Surface* screen = NULL;
SDL_Init ( SDL_INIT_EVERYTHING );
screen = SDL_SetVideoMode (648, 480, 64, SDL_HWSURFACE);
hello = SDL_LoadBMP ("C:\\Users\\User\\Desktop\\Dropbox\\User\\Leslie Hi Photo" );
SDL_BlitSurface (hello, NULL, screen, NULL);
SDL_Flip ( screen );
SDL_Event event;
bool cary_on = true ;
while (cary_on == true ){
while (SDL_PollEvent ( &event )){
if (event.type == SDL_QUIT){
cary_on = false ;
}
}
}
SDL_Quit();
return ;
}
Problem is I get undefined reference to almost everything. I get it to:
Init
SetVideoMode
RWfromFile
LoadBMP_RW
Upper_Bit
Flip
PollEvent
and
Quit
What can I do to fix this?
Jul 18, 2013 at 1:02am UTC
Bump.
Jul 18, 2013 at 1:05am UTC
Jul 18, 2013 at 2:14am UTC
Are you linking to the library correctly?
Jul 18, 2013 at 9:30pm UTC
My log says it is.
Topic archived. No new replies allowed.