SDL

closed account (NUj6URfi)
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?
closed account (NUj6URfi)
Bump.
You'd probably have more luck asking that question here: http://forums.libsdl.org/index.php
Are you linking to the library correctly?
closed account (NUj6URfi)
My log says it is.
Topic archived. No new replies allowed.