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. link error when i use Qt Static Lib which i built by myself
Qt 6.11 is out! See what's new in the release blog

link error when i use Qt Static Lib which i built by myself

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 470 Views 2 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    link error when i use Qt Static Lib which i built by myself, when i build DEBUG:
    error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QString::QString(chat const *) (_imp??0QString@@QEAA@PEBD@Z) referenced in function ......)

    But, while i build RELEASE app, there is no error!

    it's just a very simple basic app, and i'm sure the QString is used.

    thank you

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Did you build Qt with configure option -debug-and-release ? Maybe you just built the release one so in debug it can't find the needed libs?

      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