如何添加C ++ 11支持Code :: Blocks编译器? [英] How can I add C++11 support to Code::Blocks compiler?

查看:189
本文介绍了如何添加C ++ 11支持Code :: Blocks编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一些代码,需要C ++ 11支持我的Code :: Blocks 12.11。我使用默认GNU GCC编译器附带MingW。

I'm writing some code that requires to have C++11 support for my Code::Blocks 12.11. I am using default GNU GCC Compiler came with MingW. Is there any way I can do this?

推荐答案


  1. 转到工具栏 - >设置 - >编译器

  2. 在所选编译器下拉菜单中,确保选择了GNU GCC Compiler

  3. 选项卡,然后是
  4. 下的编译器标记选项卡。
  5. 在下面的列表中,确保Have g ++框遵循C ++ 11 ISO C ++语言标准[-std = c + 11]

  6. 点击确定保存

  1. Go to Toolbar -> Settings -> Compiler
  2. In the "Selected compiler" drop-down menu, make sure "GNU GCC Compiler" is selected
  3. Below that, select the "compiler settings" tab and then the "compiler flags" tab underneath
  4. In the list below, make sure the box for "Have g++ follow the C++11 ISO C++ language standard [-std=c++11]" is checked
  5. Click OK to save

这篇关于如何添加C ++ 11支持Code :: Blocks编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆