如何在OpenSource IDE(codelite)中迁移到C ++ 11 [英] How to migrate to C++ 11 in an OpenSource IDE (codelite)

查看:198
本文介绍了如何在OpenSource IDE(codelite)中迁移到C ++ 11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu QQ上使用CodeLite 5.1。默认情况下,基于以前使用QQ和其他工具,我有gtCC和gt ++工具链可用。我总是使用gt ++,这似乎与Boost一致OK。



想要使用C ++ 11运行的东西 - 我需要采取什么步骤?

解决方案

更新请参阅下文



我试过Linux 1

p>

首先,在构建选项下,为相关的编译器开关创建一个条目:



缩放:



使用g ++演示:


  1. 创建项目









  1. com / XuS7O.pngalt =enter image description here>





    1. 构建并运行







    SUCCESS!





    您可能需要勾选代码完成下的启用C ++ 11标准 复选框:



    >





    1 在Ubuntu Quantal上,不要使用distro版本 - 打开项目时崩溃。使用

      deb http://repos.codelite.org/ubuntu/ quantal universe 


    I am using CodeLite 5.1 on Ubuntu QQ. By default, based on what was intalled previously with QQ and other tools, I have the gtCC and gt++ toolchains avialable. I always use gt++, which seems to get along OK with Boost.

    Would like to get things running using C++ 11 - what steps do I need to take? Do I need to install C++ 11 libs?

    解决方案

    Update See below

    I tried on Linux1:

    First, under build options, create an entry for the relevant compiler switch:

    Zoomed:

    Demonstration using g++:

    1. Create project

    1. Set build flags (Global Settings)

    1. Build and run

    SUCCESS!

    Update:

    You will likely want to tick the Enable C++11 Standard checkbox under "Code Completion" too:


    1 On Ubuntu Quantal, don't use the distro version - it crashes on opening a project. Use

    deb http://repos.codelite.org/ubuntu/ quantal universe
    

    这篇关于如何在OpenSource IDE(codelite)中迁移到C ++ 11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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