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

posted @ 2020-05-18 11:19  rootshaw  阅读(254)  评论(0编辑  收藏  举报