Linker error - QOpenGLFunctions and glClampColor()
-
Hello everyone,
In the frame of a project, I need to use the glClampColor() functions that is defined in several classes whose name is in QOpenGLFunctions_*, including, for example, the class QOpenGLFunctions_4_3_Core. To this end, I write in my code :
@QOpenGLFunctions_4_3_Core q;
q.glClampColor (GL_CLAMP_READ_COLOR, true);@But, whereas I include the library QOpenGLFunctions_4_3_Core in my C++ file, and write at the top of my .pro file :
@QT += core opengl gui
DEFINES += GLEW_STATIC GLM_STATIC@... I get a linker error :
@LNK2019 : unresolved external symbol "__declspec(dllimport) public : void __cdecl QOpenGLFunctions_4_3_Core::__glewClampColor(unsigned int, unsigned int)" (_imp?__glewClampColor@QOpenGLFunctions_4_3_Core@@QEAAXII@Z) referenced in function "..."@
It seems like the compiler is unable to find a definition to glClampColor(). Am I doing something wrong ? I precise that I use Qt 5.2.1 and VS 2012.
Many thanks for your help !