一、Qt编译过程中,出现以下问题
#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.
意思是缺乏c++11的支持。二、在Qt工程中添加c++11即可解决具体方法: 1、Qt5的版本,在pro文件添加以下内容:
CONFIG += c++11
2、Qt5以下的版本,在pro文件添加以下内容:
QMAKE_CXXFLAGS += -std=c++0x