c/c++ 编译错误汇总

问题1.

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.

解决方法:

//g++ 后面加上 -std=c++11
g++ -o regex regex.cpp --std=c++11

猜你喜欢

转载自www.cnblogs.com/rootshaw/p/12909481.html