Error LNK2001: unresolved external character "__declspec (dllimport) public: class QString & __thiscall QString :: operator = (class QString &&)"

I desperately want to find information about the specified error.

I am working on visual studio 2010. When I compile my project (in 32 bit), in debugging or release, I get the following message:

1> heterogene.obj: error LNK2001: unresolved external character "__declspec (dllimport) public: class QString and _thiscall QString :: operator = (class QString &)" (_imp _ ?? 4QString @@ QAEAAV0 @ $$ QAV0 @@ Z )

1> debug \ nori.exe: fatal error LNK1120: 1 unresolved external

I linked QtCore4.lib to Linker-> Input, I added Qt \ 4.8.2 \ lib to the library directories in Linker-> General, and I included Qt \ 4.8.2 \ include and Qt \ 4.8.2 \ include \ QtCore in C / C ++ -> General. It seems to me that they should define a QString. I do not know what else I could do.

Many thanks for your help.

+5
source share
3 answers

I had the same problem, but I used the Qt libraries for VS2008.

I installed Qt Libraries for VS2010 to solve the problem.

+3
source

Find out where the Qt dlls are. You may need to add this directory to "Debug-> Environment".

0
source

Qt, . , .

!

0
source

All Articles