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
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 396 Views
  • 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 12 Mar 2015, 03:01 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
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 12 Mar 2015, 09:30 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

      1/2

      12 Mar 2015, 03:01

      • Login

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