ok ... i found a previous mail similar .. it seems i hadnt 'add' the test code properly ....
I have followed the tut meticulously ...
I have now managed a build which failed with coding probs ... rebuild gives..
-------------- Clean: Debug in sdlentry (compiler: GNU GCC Compiler)---------------
Cleaned "sdlentry - Debug"
-------------- Build: Debug in sdlentry (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -Wall -std=c++11 -g -std=c++11 -IC:\Users\Owner\Documents\sdlunzipped\SDL-1.2.15\include\SDL -c C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp -o obj\Debug\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.o
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp: In function 'int SDL_main(int, char**)':
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:15:2: error: 'SDL_Window' was not declared in this scope
SDL_Window* window = NULL;
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:15:14: error: 'window' was not declared in this scope
SDL_Window* window = NULL;
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:28:46: error: 'SDL_WINDOWPOS_UNDEFINED' was not declared in this scope
window = SDL_CreateWindow( "SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:28:125: error: 'SDL_WINDOW_SHOWN' was not declared in this scope
window = SDL_CreateWindow( "SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:28:142: error: 'SDL_CreateWindow' was not declared in this scope
window = SDL_CreateWindow( "SDL Tutorial", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:36:49: error: 'SDL_GetWindowSurface' was not declared in this scope
screenSurface = SDL_GetWindowSurface( window );
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:42:36: error: 'SDL_UpdateWindowSurface' was not declared in this scope
SDL_UpdateWindowSurface( window );
^
C:\Users\Owner\Documents\uz01_hello_SDL-5\01_hello_SDL\01_hello_SDL.cpp:50:28: error: 'SDL_DestroyWindow' was not declared in this scope
SDL_DestroyWindow( window );
^
Process terminated with status 1 (0 minute(s), 0 second(s))
8 error(s), 0 warning(s) (0 minute(s), 0 second(s))