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.
glew32.lib
and not againstglew32.dll
. Normally this error occurs when linking against a dll instead of the lib and the error message also saysglew32.dll
(which should normally not be part of the linking process at all). – BDL