Update See below
I tried on Linux1:
First, under build options, create an entry for the relevant compiler switch:
Zoomed:
Demonstration using g++:
- Create project
- Set build flags (Global Settings)
- 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