hello. how can i change compiler standard used in qt creator? i need g++ 4.5.
hello. how can i change compiler standard used in qt creator? i need g++ 4.5.
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.
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?
<Zlatomir's advice is much much better>
Last edited by squidge; 6th April 2011 at 20:04.
I didn't try this but i think this line in the .pro file should do the trick:
documentationQt Code:
QMAKE_CXXFLAGS += -std=c++0xTo copy to clipboard, switch view to plain text mode
It works, thanks.
Bookmarks