#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.
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
意思很明显就是编译器要支持2011标准才可以,从编译器那里加上-std=c++11 or -std=gnu++11就可以了
stackoverflow上链接http://stackoverflow.com/questions/13836898/regex-in-c-requires-compiler-support-error
本文介绍了解决C++代码编译错误的方法,当遇到因编译器不支持ISO C++2011标准而产生的错误时,可以通过在编译选项中加入-std=c++11或-std=gnu++11来启用对C++11的支持。
6万+

被折叠的 条评论
为什么被折叠?



