Results 1 to 4 of 4

Thread: Problem regarding QT compatability

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

    Default Problem regarding QT compatability

    Hi ,
    I have a problem regarding QT integration with MS visual studio under windowsXP.
    previously I have downloaded "qt-win-commercial-4.4.0.exe" package and integrated with MS Visual Studio 2003 using package "qt-vsintegration-1.4.0.exe". First I installed MS Visual Studio 2003 and then qt-win-commercial-4.4.0.exe just by clicking on the icon after then I integrated just by clicking on qt-vsintegration-1.4.0.exe. this is the process I have done previously.
    Now I am trying to do the same with MS Visual Studio 2008 under Windows Vista. But it is not integrating properly. I mean it showing erros while I am compiling a basic Qt program (it is just I created a new QTApplication project and then compiled). The errors are


    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 how can I get out of these errors. If not please suggest me which version of QT I have to download to work under windows Vista and which addin I have to download to integrate QT with MS visual studio2008.

    Please suggest me to solve this problem.

    with regards,
    sudheer.

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem regarding QT compatability

    I would download this: http://get.qt.nokia.com/qt/source/qt...-src-4.5.2.zip
    and this: http://download.qt.nokia.com/vsaddin...ddin-1.0.2.exe

    The first download is the Qt library and its tools (Assistand, Designer...) as source code. But it can easily be compiled when Visual Studio is installed.
    The second provides integration of Qt into Visual Studio (help system, debugger, project templates...).

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem regarding QT compatability

    Are you able to build examples that come with Qt?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem regarding QT compatability

    as far as i remember... the Qt commercial packages are different for different version of MS visual studio...
    so the version for MS VS 2003 will not work with VS2008... so either you have to download the 2008 compiled version of Qt (you will find that in you customer download area) or download the qt source and compile it with VS2008.....
    also remember that VS2008 service pack 1 is different from the original VS2008... check what qt offers.

Similar Threads

  1. Problem with QAbstractListModel
    By eekhoorn12 in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2009, 14:26
  2. Replies: 1
    Last Post: 23rd April 2009, 09:05
  3. Replies: 19
    Last Post: 3rd April 2009, 23:17
  4. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

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.