errors in project using SDL (Lode's Computer Graphics Tutorial)

I successfully installed SDL in Codeblocks (discussed here http://www.cplusplus.com/forum/beginner/154178/ ) but I have problem to make the project working because there are some errors

All project files are here: http://lodev.org/cgtutor/
Now the errors are in file: quickcg.cpp
downloadable here
http://lodev.org/cgtutor/files/quickcg/quickcg.cpp
 
scr = SDL_SetVideoMode(width, height, colorDepth, SDL_SWSURFACE | SDL_FULLSCREEN);


quickcg.cpp||In function 'void QuickCG::screen(int, int, bool, const string&)':|
quickcg.cpp|115|error: 'SDL_FULLSCREEN' was not declared in this scope|

there are more errors like that one.

The other ones:
if ((event.key.keysym.unicode & 0xFF80) == 0)
quickcg.cpp|1033|error: 'SDL_Keysym' has no member named 'unicode'|

Warnings: void setBitOfReversedStream(size_t& bitp, unsigned char* bits, unsigned long bit) { bits[bitp >> 3] |= (bit << (7 - bitp & 0x7)); bitp++; }
quickcg.cpp|1033|error: 'SDL_Keysym' has no member named 'unicode'|


else if(colorType == 3) if(!(bd == 1 || bd == 2 || bd == 4 || bd == 8 )) return 37;
warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]|

Any suggestion how to correct the errors?
Last edited on
Topic archived. No new replies allowed.