title: SDL, GLEW: undefined reference
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6005076/building-glew-on-windows-with-mingw">Building glew on windows with mingw</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to study some C++ with SDL and OpenGL. As binding for OpenGL i've chosen GLEW, which i finally got to compile...well until i'm going to use bindings newer than OpenGL 1.1.
  The glew headers are included, right before SDL, i'm not using SDL's at all, compiling using Code::Blocks with mingw. The glew32.lib is linked, also the opengl32 and glu32 lib. As soon as i use glGenBuffers (from OpenGL 1.5 afaik) i get the following error from the linker:</p>
  
  <blockquote>
    <p>undefined reference to _imp____glewGenBuffers</p>
  </blockquote>
  
  <p>I checked out the glewinfo.exe tool in my download, which tells me that OpenGL 1.5 is successfully included, but he can't find it for some reason.</p>
  
  <p>I googled nearly all the day for this problem, compiled glew again (downloaded MS VC only for this) and still no result. What I'm doing wrong?</p>