Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Linker error - QOpenGLFunctions and glClampColor()
Forum Updated to NodeBB v4.3 + New Features

Linker error - QOpenGLFunctions and glClampColor()

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 706 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pourpre
    wrote on last edited by
    #1

    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 !

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved