今天在编译程序的时候突然出现了这样的错误
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #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.
#error This file requires compiler and library support for the \
解决方法
Makefile的上面加上下面的内容
CXX = g++ -std=c++11
CXXFLAG = -g -wall -std=c++11
网友评论