|
Boost : |
Subject: Re: [boost] Should the clang, c++11 and libstdc++ configuration supported?
From: Tim Blechmann (tim_at_[hidden])
Date: 2012-11-17 10:27:39
>>>> clang compiler is not delivered with a C++11 standard library. When
>>>> compiling on c++11 mode, some boost libraries (in particular, Boost.Thread,
>>>> Boost.SmartPtr, Boost.Test) are expecting to have a C++11 standard library.
>>>> This mean that the user needs to install the latest version of libc++.
>>>
>>> Are you sure about that?
>>
>> Like Daniel, I'm not sure that "clang compiler is not delivered with a
>> C++11 standard library." is correct. Doesn't the way Clang gets
>> "delivered" depend on the platform and distribution involved? I've
>> only use Clang a few times, but IIRC all the distributions I've used
>> supplied a C++ standard library as part of the package.
>
> That wasn't what I meant (it'd have been smarter if I did). Like
> intel, clang is different everywhere. It often uses the native gcc
> standard library, which is occasionally an old one with no C++11
> support. Because apple stopped updating gcc after 4.2, the default
> version of libstdc++ doesn't have C++11 support. I'm sure it's
> possible to use a more recent version, but I've never tried.
in my experience clang++ does not play well with libstdc++ in c++11 mode
... at least std::thread is completely broken ... this is a known issue
and the bug report already half a year old ... without any activity ...
but i suppose the reason is simply that for the clang sponsors
libstdc++/c++11 compatibility is not relevant ...
tim
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk