Link Qt libraries to MFC project. Link error
I have created a simple message box in MFC using the Qt function which was linked in code. Now I want to link all the libraries to MFC project in order to replace the MFC UI with the Qt ui. At the moment I receive a lot of link errors and one of them is:
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QString::~QString(void)" (__imp_??1QString@@QAE@XZ) referenced in function _showDialog
In VS I linked headers, dll and libs but the problem is still present. I'm sure that I missed something. Can you help me out? Thank you in advance.
@mandruk1331 Are the Qt libraries you're using built with same compiler as you're using for the project?
You either don't link correctly against Qt libs or your Qt libs are built using different compiler.
this is how I included everything in VS13. I have to fully build Qt for VS?
@mandruk1331 You need to check the compiler output to see which paths are passed to the linker. Also do you build your project as 64bit or32bit?
@jsulm checked the logs VS includes the headers and sets the lib and bin path but there is no operation in including the libs or dll.