PDA

View Full Version : getting GLEW to work for first time



JAG13
08-04-2011, 07:28 PM
Windows 7, 64 bit, Visual Studio 2008, C++
I am working on chapter 1 from the GL Book. The first example now runs but when I add in GLEW there are two link errors:

error LNK2019: unresolved external symbol __imp__glewGetErrorString
and
error LNK2019: unresolved external symbol __imp__glewInit

None of the web pages I found about installing GLEW matched up with my system. I finally found a page that was close enough that I think I have all the stuff in the right places. The code compiles without error, but does not link.

I am suspecting I don't have something somewhere.
What do you suggest?

mobeen
08-04-2011, 08:03 PM
Have u added glew32.lib to the linker libraries. On visual studio this option is under project->properties->config. props->linker->input->additional dependencies. You may add it programmatically by adding this to the top of the code after the includes

#pragma comment(lib,"glew32.lib")