2015-03-13 48 views
0

我想包括在開發的C++ 5.9陣列,但它給了一個錯誤:不能包括在開發STD陣列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++。任何幫助表示讚賞。

謝謝

+0

那麼,作爲錯誤狀態,您可以通過使用編譯器標誌啓用C++ 11的支持。你已經試過了嗎? – user463035818 2015-03-13 11:43:22

回答

1

錯誤消息告訴你如何修復錯誤。

#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

+0

非常感謝。有效。我剛剛開始學習C++,所以對我來說任何事情都是新的。 – Fairy 2015-03-13 11:55:42

+0

@Fairy標記我接受的答案。 – user4667079 2015-03-13 12:21:32

0

Is this because of the version of DEV-C++ that I am using or my computer IOS?

不,這取決於C++編譯器版本。
由於錯誤說:

This file requires compiler and library support for the ISO C++ 2011 standard.