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
欢迎关注
微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍
原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/231213
非原创文章文中已经注明原地址,如有侵权,联系删除
关注公众号【高性能架构探索】,第一时间获取最新文章
转载文章受原作者版权保护。转载请注明原作者出处!