Use C++11 in Qt Creator [duplicate]

本秂侑毒 提交于 2019-12-30 08:58:19

问题


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.

How can I configure Qt Creator to support the new C++11 features?


回答1:


You can achieve this by adding:

QMAKE_CXXFLAGS += -std=c++11

to your .pro file.



来源:https://stackoverflow.com/questions/17510897/use-c11-in-qt-creator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!