title: OpenGL v2.0 Shaders with Dev-C++ and SDL?
body: <p>I was about to rebuild my library in Dev-C++, under Windows; however, the shader functionality I've added in the meantime is not supported, the compiler could not find the related functions (::glCreateShader(), ::glCreateProgram(), etc.)</p>
  
  <p>Digging around the internet and the Dev-C++ folder, I've found that the OpenGL implementation (gl.h) is only v1.1. I've found <a href="http://www.gamedev.net/community/forums/topic.asp?topic_id=358499" rel="noreferrer">recommendations</a> to download the latest headers from <a href="http://oss.sgi.com/projects/ogl-sample/registry/" rel="noreferrer">SGI</a>. I have found gl3.h, however, after closer scrutiny I have realized that gl.h is not included in my project anyway, and I should be looking at SDL/SDL_opengl.h.</p>
  
  <p><strong>EDIT:</strong> SDL_opengl.h <em>does</em> include gl.h <em>and</em> declares prototypes of the functions in question. So the question is, why ame I given compile-time errors rather than linker errors?</p>
  
  <p>(My library only links against mingw32, libOpenGL32, libSDL, libSDL_Image and libSDL_Mixer, much like under OSX (except for mingw32, of course) where I didn't have any problem.)</p>
  
  <p>How can I use OpenGL v2.0 shaders with Dev-C++ and SDL? </p>