Search code examples
c++c++11static-librariescodelite

How to migrate to C++ 11 in an OpenSource IDE (codelite)


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?


Solution

  • Update See below

    I tried on Linux1:

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

    enter image description here

    Zoomed:

    enter image description here

    Demonstration using g++:

    1. Create project

    enter image description here

    1. Set build flags (Global Settings)

    enter image description here

    1. Build and run

    enter image description here

    SUCCESS!

    Update:

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

    enter image description here


    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