c/c++ 编译错误汇总

Posted rootshaw

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于c/c++ 编译错误汇总的主要内容,如果未能解决你的问题,请参考以下文章