Undeclared Identifier / Identifier not found

Hello everybody, i am getting an error when i build my project. The build log says that SDL_WM_SetCaption,SDL_SetVideoMode and SDL_OPENGL are undeclared or that it cant find the identifier.
Please Help
Thanks :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "SDL.h"
#include "SDL_opengl.h"
#include <iostream>

int main(int argc, char* args[])
{
	SDL_Init(SDL_INIT_EVERYTHING);

	SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
	SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
	SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
	SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
	SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
	SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

	SDL_WM_SetCaption("Program",NULL);

	SDL_SetVideoMode(600,400,32, SDL_OPENGL);

	
	SDL_Quit();

	return 0;

}
Topic archived. No new replies allowed.