Qt and GLEW don't work!

Started by
4 comments, last by Marcoita 13 years, 9 months ago
Hi all.
I have a qt project with Visual Studio 2008, and when I build the solution the following error appear:

error LNK2019: unresolved external symbol __imp__glewInit referenced in function

but I have inserted the glew32.lib, I have the glew32.dll on Windows 7 and this problem does not disappear...

Can someone help me?

PS: hi all!
Advertisement
Have you defined GLEW_STATIC?
No.
How can i do this?
if I us glut i have no problem, but if I use qt I have this problem.
You need to add GLEW_STATIC to your preprocessor definitions and link with glew32s.lib if you want static linking.

Edit: Sorry, after reading your post again I see you are trying to do dynamic linking. Can't help you there....
Where is glew32.lib stored on your machine?
Is it with the project file or elsewhere? If elsewhere have you set the correct path in the linker settings?
glew32.lib is in C:\glew-1.5.4\lib and I have this path with Visual Studio, and there is no error of type:
glew32.lib not found

This topic is closed to new replies.

Advertisement