Results 1 to 2 of 2

Thread: Error while compiling a new basic project

  1. #1
    Join Date
    Aug 2008
    Posts
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Error while compiling a new basic project

    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..

    Qt Code:
    1. 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)
    2.  
    3. 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@locale@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)
    4.  
    5. 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@locale@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)
    6.  
    7. Error4fatal error LNK1120: 3 unresolved externalsD:\Sudheer data\ssss\Debug\ssss.exe
    To copy to clipboard, switch view to plain text mode 

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

    With regards
    Sudheer

  2. #2
    Join Date
    Jun 2008
    Location
    Germany/Belarus/Sweden
    Posts
    53
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Error while compiling a new basic project

    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....

Similar Threads

  1. Error while compiling a new basic project
    By sudheer168 in forum Installation and Deployment
    Replies: 0
    Last Post: 17th August 2009, 07:34
  2. Compiling a project
    By dreamer in forum Installation and Deployment
    Replies: 2
    Last Post: 3rd July 2008, 10:11
  3. Replies: 1
    Last Post: 15th June 2008, 17:42
  4. Replies: 3
    Last Post: 18th April 2007, 15:31
  5. Compiling Linux project on Mac
    By December in forum Newbie
    Replies: 2
    Last Post: 25th March 2007, 04:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.