Results 1 to 2 of 2

Thread: How to determine the compiler-version (GCC) ?

  1. #1
    Join Date
    Sep 2008
    Posts
    23
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to determine the compiler-version (GCC) ?

    Hi,

    does anyone know how to determine the compiler-version (GCC) ?
    With GCC-versions >=4.2, the "-fgcse" optimization (enabled at optimization level 2) causes an enormous binary size increase (about 1000% with 4.3.x !!!), but I don't want to disable it generally (with QMAKE_CXXFLAGS)...

  2. #2
    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: How to determine the compiler-version (GCC) ?

    gcc -v returns the version string. You can have a script that uses tools such as sed, cut and grep that will process its output and return only the version number or 0/1 depending on the version found. You can then call such a script from qmake project and evaluate its output.

Similar Threads

  1. Designer doesn't load wwWidgets plugin
    By reimer in forum Installation and Deployment
    Replies: 21
    Last Post: 7th February 2009, 03:23
  2. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  3. Replies: 2
    Last Post: 5th November 2007, 21:47
  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.