Khal Drogo
15th February 2008, 16:58
Greetings.
I had a project made under VC2003 with Qt 4.3.3, and i tried to port it to VC2005.
I am using something like:
HWND appWindow = FindWindow(NULL, static_cast<LPCWSTR>(title.toStdWString().c_str()));
The above code worked beautifully under VS2003, but it gives the following linking error under VC2005. :
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall QString::toStdWString(void)const " (__imp_?toStdWString@QString@@QBE?AV?$basic_string @_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ XZ) referenced in function "private: void __thiscall test::nextWindow(void)" (?nextWindow@test@@AAEXXZ) test.obj
Please give me some ideas as to why this might happen.
I had a project made under VC2003 with Qt 4.3.3, and i tried to port it to VC2005.
I am using something like:
HWND appWindow = FindWindow(NULL, static_cast<LPCWSTR>(title.toStdWString().c_str()));
The above code worked beautifully under VS2003, but it gives the following linking error under VC2005. :
Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __thiscall QString::toStdWString(void)const " (__imp_?toStdWString@QString@@QBE?AV?$basic_string @_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ XZ) referenced in function "private: void __thiscall test::nextWindow(void)" (?nextWindow@test@@AAEXXZ) test.obj
Please give me some ideas as to why this might happen.