Had same problem, but, if you dont need OpenGL for compiling this example you can just comment the header where the opengl part of SDL is included, i think its SDL.H, dont remember exactly though and since im at work i cant help you futher, though its easy to find out.