Code::Blocks Forums

User forums => Help => Topic started by: er on August 16, 2010, 11:00:07 pm

Title: C++0x supported in default compiler under CB 10.05
Post by: er on August 16, 2010, 11:00:07 pm
Hello,

My understanding is that CB comes with a pre-installed compiler. I though I had read it is GCC4.4 under CB 10.05. However, I enable c++0x in the compiler settings > Compiler flags, and here's what I get:

Compiling: main.cpp
cc1plus: error: unrecognized command line option "-std=c++0x"

Some help would be appreciated. Thanks.
Title: Re: C++0x supported in default compiler under CB 10.05
Post by: stahta01 on August 17, 2010, 03:39:10 pm
You are likely using an Compiler that is too old.

I just used the Compiler that is sometimes packaged with CB 10.05 and the option "-std=c++0x" worked.

Tim S.
Title: Re: C++0x supported in default compiler under CB 10.05
Post by: er on August 17, 2010, 05:22:50 pm
You are likely using an Compiler that is too old.

I just used the Compiler that is sometimes packaged with CB 10.05 and the option "-std=c++0x" worked.

Tim S.

Thanks. Yes, I know, it's using the compiler that already resides on my machine, GCC 4.2 probably.

Under Mac OS X?

How can I make sure it is packaged with the right compiler?

Title: Re: C++0x supported in default compiler under CB 10.05
Post by: oBFusCATed on August 17, 2010, 06:36:09 pm
Find your gcc/g++ executable and execute "gcc --version/g++ --version" in a terminal