Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    2
    2
    304
    Loading More Posts
    • 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
      opengpu2 last edited by

      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 Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by

        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 Reply Quote 0
        • First post
          Last post