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
在编译器的设置里面勾选就好了
这里写图片描述

 

posted @ 2016-04-01 11:28  voidsky  阅读(706)  评论(0编辑  收藏  举报