Results 1 to 5 of 5

Thread: Qt 4.3.1 Commercial Edition & Visual Studio 6

  1. #1
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Qt 4.3.1 Commercial Edition & Visual Studio 6

    Hi all,
    I need to use Qt 4.3.1 Commercial Edition with Visual Studio 6.
    I've installed all correctly but when I try to compile an application using Qt and STL library I have problems like this:


    'map' : use of class template requires template argument list

    I think that STL library was included where it not supposed to be.

    Do you know if this version of Qt runs without problems on Visual studio 6? Somebody has tested this problems?

    Thanks,
    Michele
    Last edited by mdecandia; 17th September 2007 at 12:38.

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

    Default Re: Qt 4.3.1 Commercial Edition & Visual Studio 6

    Your code seems to be incorrect. You seem to have forgotten to put template arguments when declaring the map, something like:
    Qt Code:
    1. map<string, string> mymap;
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Mar 2007
    Posts
    29
    Thanks
    2

    Default Re: Qt 4.3.1 Commercial Edition & Visual Studio 6

    I have that error on qdatastream.h, so Qt libraries have that problem.

    The error line is the following:
    Q_OUTOFLINE_TEMPLATE QDataStream &operator>>(QDataStream &in, QMap<aKey, aT> &map)

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

    Default Re: Qt 4.3.1 Commercial Edition & Visual Studio 6

    Try changing the order of includes so that Qt headers come before stl ones.

    Visual Studio 6 is in general broken. Do you really have to use this version of the compiler?

  5. #5

    Default Re: Qt 4.3.1 Commercial Edition & Visual Studio 6

    Its amazing!
    You just installed qt 4.3.1 and it worked correctly with VC 6.0.
    Could you please help me to teach VC to compile my HelloWorld project?
    I installed QT. It`s been successfully integrated, judging by the qt panel in VC, but I faced the next error while compiling my HelloWorld application:
    'can not find include file'QApplication'.
    Thank you for attention.

Similar Threads

  1. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 09:17
  2. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 16:43
  3. Visual Studio App Wizard for Qt
    By joshlareau in forum Qt-based Software
    Replies: 4
    Last Post: 9th February 2007, 21:36
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 14:40

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
  •  
Qt is a trademark of The Qt Company.