在Qt Creator中使用C ++ 11 [英] Use C++11 in Qt Creator
本文介绍了在Qt Creator中使用C ++ 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Ubuntu上使用Qt Creator,我想使用新的C ++ 11功能,但是默认情况下不启用。
I'm using Qt Creator on Ubuntu, and I'd like to use the new C++11 features, however they are not enabled by default.
如何配置Qt Creator以支持新的C ++ 11功能?
How can I configure Qt Creator to support the new C++11 features?
推荐答案
p>
You can achieve this by adding:
QMAKE_CXXFLAGS += -std=c++11
到您的.pro文件。
这篇关于在Qt Creator中使用C ++ 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文