I think you need to link to glew32sd.lib or glew32s.lib (depending on the debug or release configuration), since you defined GLEW_STATIC.
Here is a snippet from a precompiled header in the win32 glew application that we recently completed. It shows the libraries we linked to:
#pragma comment( lib, "OpenGL32.lib") #pragma comment( lib, "GLu32.lib") #pragma comment( lib, "freeglut_static.lib") #define GLEW_STATIC #if defined _DEBUG #pragma comment(lib, "glew32sd.lib") #else #pragma comment(lib, "glew32s.lib") #endif #include <GL\glew.h> #include <gl\GL.h> #include <gl\GLU.h>
Note that we used glew32s.lib and glew32sd.lib (debugging equivalent), which I believe is the static lib for glew.
If you pointed the library correctly and included the folders, the only problem I can think of is that you might need the dll files that will be copied to the output folder for your project.
So, for example, if your project is built on c: \ MyProject \ Debug \ MyProject.exe, copy the dlls to c: \ MyProject \ Debug.
Hope this helps.
fishfood
source share