User forums > Help

C++0x supported in default compiler under CB 10.05

(1/1)

er:
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.

stahta01:
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.

er:

--- Quote from: 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.

--- End quote ---

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?

oBFusCATed:
Find your gcc/g++ executable and execute "gcc --version/g++ --version" in a terminal

Navigation

[0] Message Index

Go to full version