不能在 Dev C++ 5.9 中包含 std 数组
can not include std array in dev c++ 5.9
我想在 DEv C++ 5.9 中包含数组,但它给出了一个错误:
32 2 c:program files (x86)dev-cppmingw64libgccx86_64-w64-mingw324.8.1includec++bitsc++0x_warning.h [Error] #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.
这是因为我正在使用的 DEV-C++ 版本还是我的计算机 IOS?我使用了其他版本的 DEV C++但由于我的计算机上有 Windows 8,因此它们无法处理,我需要使用此版本的 DEV C++。任何帮助,不胜感激。
谢谢
错误消息会告诉您如何修复错误。
#error 此文件需要编译器和库支持 ISO C++ 2011 标准。此支持目前处于实验阶段,必须 使用 -std=c++11 或 -std=GNU++11 编译器选项启用
阅读 IDE 文档以了解如何执行此操作或参考此映像。
http://www.cplusplus.com/doc/tutorial/introduction/devcpp/devcpp2.png
在 DEV C++ 中,工具<<将编译器设置为调试/发布 <<设置<<代码生成<<语言标准 (-std) <<ISO C++11 或 GCC C++11(无论您使用什么),<<使用调试/发布您之前使用的任何内容来编译您的 std::array 代码。
这是因为我正在使用的 DEV-C++ 版本还是我的 电脑IOS?
否,这取决于C++编译器版本。
正如错误所说:
此文件需要 ISO C++ 2011 的编译器和库支持 标准。
相关文章:
- 为什么std::copyable包含std::moveable
- 包含 std::list 的结构体的 C++ 初始化
- C++如何乘以包含 std::variant 元素的向量的迭代器?正在执行迭代器类型的转换?
- 包含 std::threads 的元素向量
- std::包含 std::函数回调的多个包装器的向量不起作用
- 检查 std::any 变量是否包含 std::string 时出现问题
- 安装 GCC 7.1 是否会在标准库中包含 std::is_base_of_v
- C++ 中的 NAPI 本机模块正在部分执行(包含 std::thread)
- 包含 std::string 常量的类
- 即使在包含 std 命名空间之后,fstream 在 Visual Studio 2017 中也无法正常工作
- 如何重用包含 std::ifstream 的类
- 提升序列化:SIGABRT 同时反序列化包含 std::shared_ptr 的对象上的 boost::shared_p
- 传统C 代码不包含std ::前缀
- 如何在(C )构造函数参数列表中包含std:列表
- 从C++文件中读取包含 std::vector 的对象
- 在头文件中包含std::vector会导致模板实例化错误
- 是否有一个包含std::unique_ptr的c++标准库实现可以与visualstudio2008一起使用
- 包含 std::forward 会产生错误,但其省略会编译.为什么
- 包含std ::队列的类的价值限制
- 为什么结构make_unique在包含 std::p romise 作为成员时失败?