C++中使用array報錯 requires compiler and library surpport for the ISO c++ 2011 standard


#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.

 

意思很明顯就是編譯器要支持2011標准才可以,從編譯器那里加上-std=c++11 or -std=gnu++11就可以了

stackoverflow上鏈接http://stackoverflow.com/questions/13836898/regex-in-c-requires-compiler-support-error

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM