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. Linking error in Qt5.7 with Opengl on windows
Qt 6.11 is out! See what's new in the release blog

Linking error in Qt5.7 with Opengl on windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 616 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.
  • D Offline
    D Offline
    dannox
    wrote on last edited by
    #1

    Hi,
    I use msvc compiler (vs 2015) and I'm not abloe to get rid off this type of linking error:

    LNK2001: unresolved external symbol __imp__glClear@4

    I add LIBS =+opengl32.lib and I add also the dir but nothing changed.
    If I checked the symbols inside the lib, there is prefix imp that change everything, since it is expected to load from a dll I think. So...I need to pass to the linker a .lib with the defs of the dll.
    I try to create one of this files through dumpbin export, but it's not able to export correctly the simbols.
    How can I do?

    cheers
    dan

    Daniele Giunchi
    Framework Architect
    Software Developer

    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