问题描述
我正在尝试在Dev C ++ IDE上进行编译,但是显示此错误:
error This file requires compiler and library support for the
ISO C-+ 2011 standard. This support is currently experi Ical,and it be emblem with the -stdest or -stdagno 11 compiler options
解决方法
在DevC ++中执行以下步骤。
转到工具-> 编译器选项... -> 程序
替换图片中所选的文件:
gcc.exe -std=c++11
g++.exe -std=c++11
,
软件测试帮助表格 Q #2) Does Dev C++ support C++11?
- 为此,请在Dev-C ++ IDE中单击工具。
- 下一步单击编译器选项…
- 在此之下,单击“ 设置”标签。
- 在“设置”标签中,我们可以看到“ 代码生成”标签。
- 单击“ 语言标准(-std)”值,并将其设置为“ ISOC ++ 11 ”或“ GNUC ++ 11 按您的要求。