   GLEW and MinGW
  Im using mingw32 for cross-compiling a windows-app on linux. My IDE is CodeBlocksFollowing linker error (and many other in the same sheme) appears whenever I try to link with glew32.lib:undefined reference to `__imp____glewDeleteBuffers'So I tried defining GLEW_STATIC and linking with glew32s.lib, but I get that single one:undefined reference to `__imp__wglGetCurrentDC@0'I dont really care, wether I link static or with the dll stuff. So... somebody a solution for one of the cases?thx   
  Did you first compile the library, undefined reference is ususally a linking problem.  You have to actually compile the source of GLEW before you can use it.  It creates *.a (not *.lib which come with GLEW by default, those are fore MSVC) files for the linker, and just point your link directory to that, then include the *.h file with it.   ;  well okay... but can I do that from linux mith the mingw32-package, or do I actually need a "real" windows?   ;  At least on my Windows machine I can use the *.lib files directly with gcc 4.1.1. If that doesn't work one could try "reimp" (->google) which can convert *.lib into *.a files. Maybe reimp also works for Linux. GLEW also needs the wgl stuff and if you don't have that in you OpenGL library (libopengl32.a) it will naturaly complain. Did you link to the Windows specific OpenGL library using -lOpenGL32 instead of -lGL?   ;  Currently Im linking with the following libs: glfw opengl32 glu32 user32 kernel32 glew32Ive just used reimp (on a "real" windows) on glew32.lib, but if I link with the resulting libglew32.a, the error is simply the same. For glew32s.lib, reimp doesnt seem to work at all (no error, but no file is created)And whenever I try to compile glew on windows/mingw with simply typing "make", I get following error (maybe not exact, cause I have to translate it from german^^): Couldnt find the command "config"   ;  Sometimes the order of the libraries linked against matters...maybe try placing the glew library in a different position in the list?   ;Quote:Original post by TrenkiAt least on my Windows machine I can use the *.lib files directly with gcc 4.1.1. If that doesn't work one could try "reimp" (->google) which can convert *.lib into *.a files. Maybe reimp also works for Linux. GLEW also needs the wgl stuff and if you don't have that in you OpenGL library (libopengl32.a) it will naturaly complain. Did you link to the Windows specific OpenGL library using -lOpenGL32 instead of -lGL?He's on linux, so he will not need (nor have, nor would solve his problem by having) wgl.  depending on the os you compile/make it on, it will look up Platform Specific GL routines (XGL would be what he would have).  And from my understanding you can't just convert .lib to .also, try removing 32 from the glew name.  When I compiled glew it came out as libglew.a rather than libglew32.a.   ;  well... thank you for all those tips, but nothing till now worked out for me :( Maybe someone else has compiled a "mingw-version" of GLEW and could simply send it to me ? It probably doesnt need to be the very latest version anyway   ;  Yep, i also need the GLEW lib compiled for mingw and i don't really know how to do that... so i'm stuck and i'm unable to compile files using specific functions from OpenGL 2.1:S   ;  How about using an MSYS & GCC install (on a windows machine) to compile it?