[cfe-dev] Clang C++0x extensions

Christopher Jefferson chris at bubblescope.net
Wed Apr 27 00:49:38 PDT 2011


On 26 Apr 2011, at 17:59, Fletcher, John P wrote:

> Is there a specific command option to enable Clang C++0x extensions?  I have been looking through the manual and cannot find this.

You probably want -std=gnu++0x.

You can use -std=c++0x, but that disables gnu extensions. The default flag is  -std=gnu++03, and quite a bit of code (including last time I checked the standard header <cmath> on mac os x) won't compile in c++03 or c++0x mode.

Chris



More information about the cfe-dev mailing list