News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

C++ compiler support on Code::Blocks 10.05.

Started by Kishor, November 20, 2013, 03:43:54 PM

Previous topic - Next topic

Kishor

I am unable to compile c++11 programs on Code-Block 10.05 (Fedora 15).
How do I achieve to compile c++11 programs on code blocks 10.05. Please provide some
help here.

Thanks in Advance.

BlueHazzard

1) 10.05 is realy outdated, i think you can find a newer version somewhere
2) Project-> Build Options->Compiler settings->Other options-> Add -std=c++11

ps. you need an gcc > 4.7 (i think...)

greetings

TheRaven

Quote from: BlueHazzard on November 20, 2013, 06:52:23 PM
1) 10.05 is realy outdated, i think you can find a newer version somewhere
2) Project-> Build Options->Compiler settings->Other options-> Add -std=c++11

ps. you need an gcc > 4.7 (i think...)

greetings

Additionally, one could also consider using Clang/LLVM with Code::Blocks for native, complete support for C & C++ 11 specifications. Clang/LLVM sources are available if an RPM for it does not exist and compiled using GCC for the given distro and/or platform.