如何在OpenSource IDE(codelite)中迁移到C ++ 11 [英] How to migrate to C++ 11 in an OpenSource IDE (codelite)
问题描述
我在Ubuntu QQ上使用CodeLite 5.1。默认情况下,基于以前使用QQ和其他工具,我有gtCC和gt ++工具链可用。我总是使用gt ++,这似乎与Boost一致OK。
想要使用C ++ 11运行的东西 - 我需要采取什么步骤?
更新请参阅下文
我试过Linux 1 :
p>首先,在构建选项下,为相关的编译器开关创建一个条目:
缩放:
使用g ++演示:
- 创建项目
- 构建并运行
-
- Create project
- Set build flags (Global Settings)
- Build and run
com / XuS7O.pngalt =enter image description here>
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++:
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屋!