c++ - 如何在Dev C++ IDE中启用C++ 11或C++ 14

标签 c++ c++11 c++14 dev-c++

我正在尝试在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++中执行以下步骤。
转到工具-> 编译器选项... -> 程序
enter image description here
enter image description here
替换为图像中选定的文件:

   gcc.exe -std=c++11
   g++.exe -std=c++11

关于c++ - 如何在Dev C++ IDE中启用C++ 11或C++ 14,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64371274/

相关文章:

c++ - 动态分配对象数组

c++ - 为什么 allocate_shared 和 make_shared 这么慢

C++14 尽管删除了复制构造函数,函数仍返回对象数组

c++ - 什么是 `std::set<int,int>::iterator` ?

c++ - std::bind 不会接受绑定(bind)占位符的 std::cref - 为什么?

c++ - std::map emplace/insert 正在插入的移动值

c++ - 为什么 setCentralWidget 不起作用?

c++ - 错误 : could not convert ‘print’ from ‘void (*)(int)’ to ‘std::function<void()>’

c++ - 为什么在使用嵌套的 OpenMP pragma 时 c++11 线程变得不可连接?

c++ - 为什么 std::vector 和 std::array 的 C++ initializer_list 行为不同?