codeblocks c++ 编译出错
生活随笔
收集整理的這篇文章主要介紹了
codeblocks c++ 编译出错
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
codeblocks編譯出錯
今天編譯一個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.
解決方案:
勾選一個c++的標準就好
Project/build option/compiler flags/勾選C++0x ISO 或者c++11
但是這個只對當前的項目有用,有沒有一勞永逸的方法呢?
Setting/Compiler
在編譯器的設置里面勾選就好了
?
轉載于:https://www.cnblogs.com/voidsky/p/5373931.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的codeblocks c++ 编译出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL DBA面试全揭秘
- 下一篇: Mysql db