开发者

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

开发者 https://www.devze.com 2023-04-11 01:24 出处:网络
This question already has answers here: Configuring the GCC compiler swi开发者_C百科tches in Qt, QtCreator, and QMake
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

精彩评论

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

关注公众号