[cfe-dev] New C++0x feature support in Clang

Larry Evans cppljevans at suddenlink.net
Sun Jan 30 04:23:45 PST 2011


On 01/30/11 05:25, Christopher Jefferson wrote:
> 
> On 29 Jan 2011, at 19:13, Larry Evans wrote:
> 
>> On 01/29/11 05:16, Larry Evans wrote:
>>> On 01/26/11 15:45, Douglas Gregor wrote:
>>>> Clang has recently gotten much-improved support for the upcoming
>>>> C++0x standard.
[snip]

>> Just #including iostream causes problems, as shown by
>> compile of the following test.cpp:
>>
>>  #include <iostream>
>>  int main(void)
>>  {
>>    std::cout<<"Hello World!\n";
>>    return 0;
>>  }
> 
> The problem you are seeing is that adding -std=c++0x adds a bunch of new g++-specific 
> extensions to libstdc++ (the g++ standard library implementation). To make clang work 
> on linux these all need supporting (or libc++ needs porting over).
> 
> Chris

Thanks Chris,

Using the compile option, -U__GXX_EXPERIMENTAL_CXX0X__, seems to
workaround the compile problem.  However, I've not tried linking yet.

Larry





More information about the cfe-dev mailing list