I never tried what you did but I think you’re supposed to provide the MSVC compiler with the search paths in Linker->General->Additional Library Directories and only put “glew32.lib” in Additional Dependencies.
I think your linker is trying to find a file named with the complete path which isn’t going to work.
I have a similar problem. I use Visual Studio 2010 and I can’t make it link glew statically.
I include glew.h at first position #include <GL/glew.h>
from the correct folder
and add the according properties:
C/C++ / General / Additional Include Directories
…\GL\glew\include;
C/C++ / General / Preprocessor
GLEW_STATIC
Linker / General / Additional Include Directories
…\GL\glew\lib;
I get a lot of LNK2001 errors:
e.g.
Error 4 error LNK2001: unresolved external symbol ___glewBindBuffer <<path>>\OpenGLTest.obj
Dynamic linking works. When I remove the preprocessor directive and put glew32.dll to the exe folder it works. But I want to link it statically.
When I remove the preprocessor directive and put glew32.dll to the exe folder it works.
That shouldn’t be possible. The static version of GLEW (which I assume you built) is not the same library as the import library version of GLEW.
So if this is happening, it is because you’re still linking to the import library, not the static library. It’s a bit confusing since they both have the “.lib” suffix. But they’re different libraries with different symbols in them.