Code::Blocks Forums
User forums => Help => Topic started 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.
-
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.
-
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?
-
Find your gcc/g++ executable and execute "gcc --version/g++ --version" in a terminal