Results 1 to 5 of 5

Thread: Windows minGW g++ version 3.4.5

  1. #1
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Windows minGW g++ version 3.4.5

    I've installed Qt under Windows. Qt installs mingw for me. Dropping to the Qt command prompt and typing g++, I see the following:


    C:\Qt\2009.03\qt>g++ --version
    g++ (GCC) 3.4.5 (mingw-vista special r3)
    Copyright (C) 2004 Free Software Foundation, Inc.


    I'm more familiar with the Microsoft compiler world of things, so forgive me if the following questions are silly:

    1. Does that mean Qt 4.5 on Windows is tied to g++ 3.4.5?
    2. I read somewhere else that g++ (gcc is the same thing, right?) is on version 4.4.1. Why such an old version?
    3. Is it possible and trivial to upgrade the compiler if necessary?
    4. What if I was to use some third party piece of software that only works on gcc versions 4 and upwards?


    Thanks,

    PUK
    Last edited by PUK_999; 19th August 2009 at 18:05.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Windows minGW g++ version 3.4.5

    Quote Originally Posted by PUK_999 View Post
    Does that mean Qt 4.5 on Windows is tied to g++ 3.4.5?
    Not tied to, just shipped with.

    Quote Originally Posted by PUK_999 View Post
    Is it possible and trivial to upgrade the compiler if necessary?
    Yes (depends on your definition of trivial). However, I'm not exactly sure what version they officially support. The supported platforms page states they support mingw 3.4.2.

    Go to http://www.mingw.org. It's currently at gcc-4.4.0.

    Quote Originally Posted by PUK_999 View Post
    What if I was to use some third party piece of software that only works on gcc versions 4 and upwards?
    You'd need gcc v4 or up.
    Last edited by franz; 19th August 2009 at 18:12. Reason: updated contents
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Windows minGW g++ version 3.4.5

    Actually, their installer installs 3.4.5 at this point. You need to do 4.4.0 by hand at the moment it seems.

    Also bear in mind that the MinGW compiler is not maintained by the GCC developers, but by a different team, so they are likely to lag a bit behind the GCC devs.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  4. The following user says thank you to franz for this useful post:

    PUK_999 (20th August 2009)

  5. #4
    Join Date
    Aug 2009
    Posts
    30
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Windows minGW g++ version 3.4.5

    Thanks franz. I'm just worried incase I get so far down the line with my application, need to use a 3rd party library which won't work with the compiler Qt requires. Looks like I might have some flexibility in updating it then...

    PUK

  6. #5
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Windows minGW g++ version 3.4.5

    I read that Qt-4.6 will be shipped with GCC-4.4.0
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

Similar Threads

  1. Don't configure under vs command prompt when building gcc (mingw) version of qt
    By piotr.dobrogost in forum Installation and Deployment
    Replies: 4
    Last Post: 1st February 2011, 20:28
  2. using the qt 4.4.0 evaluation version with MinGw
    By dano in forum Installation and Deployment
    Replies: 4
    Last Post: 4th July 2008, 16:02
  3. Qt + boost + MinGW on Windows
    By akos.maroy in forum Newbie
    Replies: 3
    Last Post: 12th June 2008, 14:53
  4. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  5. Replies: 15
    Last Post: 21st April 2007, 17:46

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.