OpenGL in Visual studio - Issues with GLEW

Posted by BalsamicVinegar on Stack Overflow See other posts from Stack Overflow or by BalsamicVinegar
Published on 2012-09-27T02:32:16Z Indexed on 2012/09/27 3:37 UTC
Read the original article Hit count: 171

Filed under:
|
|
|
|

I'm currently following the openglbook.com tutorials (set up) (Tutorial) and have run into an issue fairly early on. I'm getting the following two errors:

1>main.obj : error LNK2019: unresolved external symbol __imp__glewGetErrorString@4 referenced in function _Initialize
1>main.obj : error LNK2019: unresolved external symbol __imp__glewInit@0 referenced in function _Initialize

I have downloaded and compiled freeglut 2.8.0 as well as the glew 1.9.0 binaries. I have copied the libs and includes to C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Lib and Include respectively. The Lib and Include paths have also been added to my project properties under Additional Library/Include directories.

I have also defined glew32.lib and freeglut.lib in my linker->Input->Additional dependencies.

I have included and at the top of my main file.

What am I missing? Every other thread I've found has been solved by adding the directories to the project properties. Does anyone have any ideas?

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio