@TOCCodeBlocks出现报错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.
问题描述:
使用Codeblocks时提示文件中此处报错
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.
原因分析:
可能需要选择新的编译器
解决方案:
在Settings->Complier->选择Have g++ follow the C++11 ISO C++ language standard->打上勾->选择OK
再次编译就成功了