skywolf:~/tmp/thuan/assign1$ export PATH=$PATH:/h/u3/g3/00/g3nauht/pub skywolf:~/tmp/thuan/assign1$ make g++ -Wall -g -DLINUX `sdl-config --cflags` -c -o main.o main.cpp /bin/sh: line 1: sdl-config: command not found main.cpp:17:17: SDL.h: No such file or directory In file included from main.cpp:21: main.h:22: error: type specifier omitted for parameter `Uint32' main.h:22: error: parse error before `)' token main.h:28: error: `SDL_keysym' was not declared in this scope main.h:28: error: `keysym' was not declared in this scope main.h:28: error: variable or field `handleKeyPress' declared void main.h:30: error: `SDL_Surface' was not declared in this scope main.h:30: error: `screen' was not declared in this scope main.h:30: error: variable or field `Draw' declared void main.h:31: error: `SDL_Surface' was not declared in this scope main.h:31: error: `screen' was not declared in this scope main.h:31: error: variable or field `Draw3D' declared void main.h:32: error: `SDL_Surface' was not declared in this scope main.h:32: error: `screen' was not declared in this scope main.h:32: error: variable or field `Draw2D' declared void main.cpp:28: error: syntax error before `*' token main.cpp:29: error: 'Uint32' is used as a type, but is not defined as a type. main.cpp:32: error: parse error before `=' token main.cpp:33: error: parse error before `=' token main.cpp:34: error: parse error before `=' token main.cpp: In function `void Initialize()': main.cpp:42: error: `g_sdlFlags' undeclared (first use this function) main.cpp:42: error: (Each undeclared identifier is reported only once for each function it appears in.) main.cpp:42: error: `SDL_OPENGL' undeclared (first use this function) main.cpp:43: error: `SDL_GL_DOUBLEBUFFER' undeclared (first use this function) main.cpp:44: error: `SDL_RESIZABLE' undeclared (first use this function) main.cpp:54: error: `SDL_INIT_VIDEO' undeclared (first use this function) main.cpp:54: error: `SDL_Init' undeclared (first use this function) main.cpp:56: error: `SDL_GetError' undeclared (first use this function) main.cpp:63: error: `SDL_FULLSCREEN' undeclared (first use this function) main.cpp:73: error: `SDL_WM_SetCaption' undeclared (first use this function) main.cpp: In function `void Quit(int)': main.cpp:101: error: `SDL_Quit' undeclared (first use this function) main.cpp: In function `bool InitTimers()': main.cpp:112: error: `g_LastCount' undeclared (first use this function) main.cpp:112: error: `SDL_GetTicks' undeclared (first use this function) main.cpp: At global scope: main.cpp:120: error: type specifier omitted for parameter `Uint32' main.cpp:120: error: parse error before `)' token main.cpp: In function `bool CreateWindowGL(...)': main.cpp:140: error: `SDL_GL_RED_SIZE' undeclared (first use this function) main.cpp:140: error: `SDL_GL_SetAttribute' undeclared (first use this function) main.cpp:141: error: `SDL_GL_GREEN_SIZE' undeclared (first use this function) main.cpp:142: error: `SDL_GL_BLUE_SIZE' undeclared (first use this function) main.cpp:143: error: `SDL_GL_DEPTH_SIZE' undeclared (first use this function) main.cpp:147: error: `g_screen' undeclared (first use this function) main.cpp:147: error: `w' undeclared (first use this function) main.cpp:147: error: `h' undeclared (first use this function) main.cpp:147: error: `bpp' undeclared (first use this function) main.cpp:147: error: `flags' undeclared (first use this function) main.cpp:147: error: `SDL_SetVideoMode' undeclared (first use this function) main.cpp: In function `bool RunFullScreen()': main.cpp:165: error: `tolower' undeclared (first use this function) main.cpp: At global scope: main.cpp:202: error: `SDL_Surface' was not declared in this scope main.cpp:202: error: `screen' was not declared in this scope main.cpp:203: error: variable or field `Draw3D' declared void main.cpp:203: error: redefinition of `int Draw3D' main.h:31: error: `int Draw3D' previously defined here main.cpp:203: error: syntax error before `{' token main.cpp:209: error: ISO C++ forbids declaration of `glClear' with no type main.cpp:209: error: `int glClear' redeclared as different kind of symbol /usr/include/GL/gl.h:977: error: previous declaration of `void glClear(unsigned int)' main.cpp:212: error: ISO C++ forbids declaration of `glMatrixMode' with no type main.cpp:212: error: `int glMatrixMode' redeclared as different kind of symbol /usr/include/GL/gl.h:1093: error: previous declaration of `void glMatrixMode(unsigned int)' main.cpp:213: error: ISO C++ forbids declaration of `glLoadIdentity' with no type main.cpp:213: error: new declaration `int glLoadIdentity()' /usr/include/GL/gl.h:1110: error: ambiguates old declaration `void glLoadIdentity()' main.cpp:215: error: syntax error before `->' token main.cpp:218: error: ISO C++ forbids declaration of `glFlush' with no type main.cpp:218: error: new declaration `int glFlush()' /usr/include/GL/gl.h:1060: error: ambiguates old declaration `void glFlush()' main.cpp:221: error: parse error before `}' token main.cpp:223: error: `SDL_Surface' was not declared in this scope main.cpp:223: error: `screen' was not declared in this scope main.cpp:224: error: variable or field `Draw2D' declared void main.cpp:224: error: redefinition of `int Draw2D' main.h:32: error: `int Draw2D' previously defined here main.cpp:224: error: syntax error before `{' token main.cpp:228: error: `screen' was not declared in this scope main.cpp:228: error: ISO C++ forbids declaration of `SDL_Flip' with no type main.cpp:229: error: parse error before `}' token main.cpp:235: error: `SDL_Surface' was not declared in this scope main.cpp:235: error: `screen' was not declared in this scope main.cpp:236: error: variable or field `Draw' declared void main.cpp:236: error: redefinition of `int Draw' main.h:30: error: `int Draw' previously defined here main.cpp:236: error: syntax error before `{' token main.cpp:239: error: `screen' was not declared in this scope main.cpp:239: error: ISO C++ forbids declaration of `Draw3D' with no type main.cpp:239: error: redefinition of `int Draw3D' main.cpp:203: error: `int Draw3D' previously defined here main.cpp:240: error: `screen' was not declared in this scope main.cpp:240: error: ISO C++ forbids declaration of `Draw2D' with no type main.cpp:240: error: redefinition of `int Draw2D' main.cpp:224: error: `int Draw2D' previously defined here main.cpp:241: error: parse error before `}' token main.cpp:257: error: `SDL_keysym' was not declared in this scope main.cpp:257: error: `keysym' was not declared in this scope main.cpp:258: error: variable or field `handleKeyPress' declared void main.cpp:258: error: redefinition of `int handleKeyPress' main.h:28: error: `int handleKeyPress' previously defined here main.cpp:258: error: syntax error before `{' token main.cpp: In function `void TimerDelay()': main.cpp:294: error: `g_TickCount' undeclared (first use this function) main.cpp:296: error: `SDL_Delay' undeclared (first use this function) main.cpp: In function `int main(int, char**)': main.cpp:310: error: `SDL_Event' undeclared (first use this function) main.cpp:310: error: parse error before `;' token main.cpp:315: error: `g_TotalTime' undeclared (first use this function) main.cpp:317: error: `event' undeclared (first use this function) main.cpp:317: error: `SDL_PollEvent' undeclared (first use this function) main.cpp:321: error: `SDL_QUIT' undeclared (first use this function) main.cpp:325: error: `SDL_KEYDOWN' undeclared (first use this function) main.cpp:327: error: `handleKeyPress' cannot be used as a function main.cpp:330: error: `SDL_VIDEORESIZE' undeclared (first use this function) main.cpp:334: error: `SDL_SetVideoMode' undeclared (first use this function) main.cpp:349: error: `Draw' cannot be used as a function main.cpp:350: error: `SDL_GL_SwapBuffers' undeclared (first use this function) make: *** [main.o] Error 1