I have glew version 1.9.0 I have put all the header files in the MSVS include directory and all the lib files in the lib folder. I then put the dll within the sysWOW64 folder a
First, you should not place your DLLs into sysWOW64
or any other Operating System owned directory such as System32
. That said, this has nothing to do with where you placed your DLLs and everything to do with the library you linked to (or rather did not link to).
You also should not be linking to 4 different GLEW configurations:
The best library to link to usually is glew32s.lib
as it negates the need for the DLL in the first place, but then you need to add #define GLEW_STATIC
before you #include "glew.h"
#pragma comment (lib, "glew32s.lib")
#define GLEW_STATIC
#include "glew.h"
I found the solution to this problem here:
Include Header files:
project > Properties > Configuration > C/C++ > General > Additional Include Directories
<Edit...>
Additional Inclue Directories
has appearednew line icon > browse button
then select the glew include folder: $(your path to glew)\glew-1.12.0\include
Include Libraries
> Properties > Configuratio Properties > Linker > General > Additional Library Directories
<Edit...>
Additional Library Directories
has appeared$(your path to glew)
\glew-1.12.0\lib\Release\x64$(your path to glew)\glew-1.12.0\lib\Release\Win32
>Properties > Configuration Properties > Linker > Input > Additional Dependencies
<Edit..>
Additional Dependencies
window has appearedglew32.lib
(Side Note: The accepted answer did NOT solve the problem)