Results 1 to 1 of 1

Thread: Qt 4.6.1 and Visual Studio 2008[SOLVED]

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Qt 4.6.1 and Visual Studio 2008[SOLVED]

    Hi,

    I've just updated my application to Qt 4.6.1 and Visual Studio 2008. Last version I was using was Qt 4.3.0 and Visual Studio .NET 2003.

    The application don't link. I've also tryied to create a new Qt application and it don't link.
    The linker errors are:
    Qt Code:
    1. Error 1 error LNK2019: sÃ*mbolo externo "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) sin resolver al que se hace referencia en la función "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) qtmaind.lib
    2. Error 2 error LNK2019: sÃ*mbolo externo "__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) sin resolver al que se hace referencia en la función "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) qtmaind.lib
    3. Error 3 error LNK2019: sÃ*mbolo externo "__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) sin resolver al que se hace referencia en la función "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) qtmaind.lib
    4. Error 4 fatal error LNK1120: 3 externos sin resolver C:\ProvaQt4.6-Vs2008\ProvaQt4.6-Vs2008\Debug\ProvaQt4.exe
    To copy to clipboard, switch view to plain text mode 
    The Visual Studio version I'm using is in Spanish language so the errors are showed in this language.

    Exporting the project to a simple PRO file and compiling it using command line works fine.

    Any idea?

    Thanks,


    ------------
    Hi,
    Finally I solved it. It seems that I need to change the Qt used version of the Project. Menu "Qt", "Qt Project Settings" and set Version to your Qt version.
    Last edited by ^NyAw^; 15th February 2010 at 16:36.
    Òscar Llarch i Galán

Similar Threads

  1. The How-To Guide: Qt4 with Visual Studio 2008
    By thomaspu in forum Qt Programming
    Replies: 18
    Last Post: 19th March 2010, 03:47
  2. Visual Studio 2008 and Qt
    By konx in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2010, 21:24
  3. How to use Qt with Visual Studio 2008?
    By N3wb in forum Installation and Deployment
    Replies: 2
    Last Post: 13th August 2009, 16:23
  4. Qt 4.4.1 deployement with Visual Studio Express 2008
    By abrou in forum Installation and Deployment
    Replies: 8
    Last Post: 28th February 2009, 02:13
  5. Qt 4.3.2 + Visual studio 2008
    By moowy in forum Installation and Deployment
    Replies: 6
    Last Post: 6th December 2007, 06:41

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.