link error when i use Qt Static Lib which i built by myself
-
wrote on 12 Mar 2015, 03:01 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
-
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/2