View Full Version : qt compiler
mrholsten
5th April 2011, 19:30
hello. how can i change compiler standard used in qt creator? i need g++ 4.5.
Zlatomir
5th April 2011, 19:58
Qt Creator (or Qt SDK) doesn't install any C++ compiler. Qt SDK uses the gcc version which is installed on your system.
//only the Windows version of SDK comes with MinGW compiler.
mrholsten
6th April 2011, 16:23
We don't understand each other. There are two versions of g++ installed on my computer. They are g++ 4.4 and g++ 4.5. When I use NetBeans I have to type -std=c++0x to switch g++ 4.5. What should I do to switch g++ 4.5 in Qt Creator?
squidge
6th April 2011, 16:52
<Zlatomir's advice is much much better>
Zlatomir
6th April 2011, 16:56
I didn't try this but i think this line in the .pro file should do the trick:
QMAKE_CXXFLAGS += -std=c++0x
documentation (http://doc.trolltech.com/4.7/qmake-variable-reference.html#qmake-cxxflags)
mrholsten
6th April 2011, 17:46
It works, thanks.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.