Author Topic: C++ compiler support on Code::Blocks 10.05.  (Read 31742 times)

Kishor

  • Guest
C++ compiler support on Code::Blocks 10.05.
« on: November 20, 2013, 03:43:54 pm »
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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: C++ compiler support on Code::Blocks 10.05.
« Reply #1 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

Offline TheRaven

  • Single posting newcomer
  • *
  • Posts: 2
Re: C++ compiler support on Code::Blocks 10.05.
« Reply #2 on: January 26, 2015, 04:55:52 am »
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.