Possible Duplicate:
Building glew on windows with mingw
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:
undefined reference to _imp____glewGenBuffers
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.
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?