I am new in opengl and i have no idea what this error means. I am using Visual Studio 2012 > C++ > Empty Project. I Follow these steps in other pc thats work for me but i am doing this in my pc i am getting this error.
ERROR
Error 1 error LNK1107: invalid or corrupt file: cannot read at 0x2B0 ?>C:\Users\Uxi\Desktop\Sp16 \Vs\OpenglPrac\OpenglPrac\glew32.dll 1 1 >OpenglPrac
Steps i Follow Is :
- Copy the Folder Glew and Glut from My folder to your desktop.
- Open Visual Studio , Select New Project
- Select Visual C++, Select Empty Project
- Write OpenGLProject as the name of your project.
- Right click on your project in solution explorer and select add -> add new item.
- Select C++ .cpp item , Name it HelloOpenGL.
- Right Click on your Project again, select properties
- Select all configuration in configuration dropdown list
- Go to C/ C++ -> General
- Go to Additional Include Directories
- Click on the button on right side and select Edit then select glew/include folder
- Click on the button on right side and select Edit then select glut/include folder
- Press OK
- Now Go to Linker - > Input
- Go to Additional Dependencies
- Click on Edit and Right glew32.lib and freeglut.lib.
- Press OK
- Now go to General
- Go to Additional libraries Directories
- Go to the Glew folder and select lib
- Go to the freeglut folder and select lib..
ThankYou.
The error message suggests, that you have linked against glew32.dll
instead of glew32.lib
. One always has to link against the lib file and copy the dll to a place where it can be found at runtime.