开发者

How to enable custom gcc parameters in Qt Creator? [duplicate]

This question already has answers here: Configuring the GCC compiler swi开发者_C百科tches in Qt, QtCreator, and QMake (3 answers) Closed 9 years ago.

I needed to pass in "-std=c++0x" for g++ , in Qt Creator. I placed a variable in Build Environment:

How to enable custom gcc parameters in Qt Creator? [duplicate]

But i still receive the warning:

warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x


You need to add QMAKE_CXXFLAGS += -std=c++0x to your .pro file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜