hello. how can i change compiler standard used in qt creator? i need g++ 4.5.
Printable View
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>
I didn't try this but i think this line in the .pro file should do the trick:
documentationCode:
QMAKE_CXXFLAGS += -std=c++0x
It works, thanks.