标题: 解决#error This file requires compiler and library support for the ISO C++ 2... [打印本页]

作者: wangyin    时间: 2014-7-30 14:08
标题: 解决#error This file requires compiler and library support for the ISO C++ 2...
#error  This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

解决方法:

在工程文件.pro中添加:

QMAKE_CXXFLAGS+=-std=c++0x

或者

QMAKE_CXXFLAGS += -std=gnu++11



作者: qiao1997    时间: 2020-9-14 11:04
姐姐,windows下怎么解决





欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1