1.错误类型:
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解决办法:
使用带参数命令进行编译:指定编译器版本
g++ -std=c++11 -o2 -o a.out test.cpp
本文介绍了解决C++11标准支持缺失的问题,提供了具体的编译命令参数,帮助开发者正确配置编译环境。
1.错误类型:
error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解决办法:
使用带参数命令进行编译:指定编译器版本
g++ -std=c++11 -o2 -o a.out test.cpp
1281
861
1850
2071
9152
1095
2063
679
3122

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