且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在OpenSource IDE(codelite)中迁移到C ++ 11

更新时间:2022-10-14 23:00:55

更新请参阅下文



我试过Linux 在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