C++中使用array报错 requires compiler and library surpport for the ISO c++ 2011 standard

时间:2023-03-09 16:17:40
C++中使用array报错 requires compiler and library surpport for the ISO c++ 2011 standard

#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.

意思很明显就是编译器要支持2011标准才可以,从编译器那里加上-std=c++11 or -std=gnu++11就可以了

*上链接http://*.com/questions/13836898/regex-in-c-requires-compiler-support-error