PDA

View Full Version : Error while compiling a new basic project



sudheer168
17th August 2009, 08:38
Hi , I have installed qt-win-commercial-4.4.0.exe in my system which is working on vista ultimate. After that I integrated with Visual Studio 2008 by using qt-vsintegration-1.4.0.exe , evry thing is fine .But if a open a new QT Application project and try to build it I came across some linker errors like..




Error1error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D @0@ABVlocale@0@@Z)

Error2error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<char>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@D@std@@SAIPAPBVfacet@local e@2@@Z) referenced in function "class std::ctype<char> const & __cdecl std::use_facet<class std::ctype<char> >(class std::locale const &)" (??$use_facet@V?$ctype@D@std@@@std@@YAABV?$ctype@D @0@ABVlocale@0@@Z)

Error3error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned int __cdecl std::ctype<unsigned short>::_Getcat(class std::locale::facet const * *)" (__imp_?_Getcat@?$ctype@G@std@@SAIPAPBVfacet@local e@2@@Z) referenced in function "class std::ctype<unsigned short> const & __cdecl std::use_facet<class std::ctype<unsigned short> >(class std::locale const &)" (??$use_facet@V?$ctype@G@std@@@std@@YAABV?$ctype@G @0@ABVlocale@0@@Z)

Error4fatal error LNK1120: 3 unresolved externalsD:\Sudheer data\ssss\Debug\ssss.exe



So I am not able to get where the problem resides.
So any one please help me to solve this problem.

With regards
Sudheer

AcerExtensa
17th August 2009, 09:25
Do you include any different headers then QT? Like <cstring> <vector> etc... ?
Do you use precompiled headers(stdafx)?
If so, include all this headers before including Qt headers....