gpt4 book ai didi

c++ - 不能在 dev c++ 5.9 中包含 std 数组

转载 作者:太空宇宙 更新时间:2023-11-04 16:10:42 26 4
gpt4 key购买 nike

我想在 DEv C++ 5.9 中包含数组,但出现错误:

32  2   c:\program files (x86)\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\include\c++\bits\c++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 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

阅读您的 IDE 文档以了解如何执行此操作或引用此图像。

http://www.cplusplus.com/doc/tutorial/introduction/devcpp/devcpp2.png

关于c++ - 不能在 dev c++ 5.9 中包含 std 数组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29031298/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com