4 ms·
OTOH libc++, the stdlib of the Clang project, is C++11 feature complete (and I guess it is the only one): > libc++ is a 100% complete C++11 implementation on A
by ot 13y ago
OTOH libc++, the stdlib of the Clang project, is C++11 feature complete (and I guess it is the only one):
> libc++ is a 100% complete C++11 implementation on Apple's OS X.
http://libcxx.llvm.org/ http://libcxx.llvm.org/
- michielvoo 13y agoIs the lib tied to the compiler, or are they interchangeable?
- dietrichepp 13y agoI don't know about GCC, but Clang (at least on OS X) lets you select the stdandard library with the -stdlib option. So the only question is whether you can use libc++ with GCC.
- zaphoyd 13y agoWhen I did research on this a year or two ago the GCC folks told me that GCC is highly coupled to libstdc++ and that it is not really interchangeable. I am not sure if this has changed more recently. Clang definitely lets you easily switch between libstdc++ and libc++.
- livingparadox 13y agoI can confirm you can use libc++ with gcc. I've already built a couple projects with it. It was the only way I could get past the linker step, once I included any c++11 standard library functions...
- snogglethorpe 13y agoThe problem with libc++ the last time I tried it was that it was heavily focused on MacOS, and didn't even build out of the box on Linux. Maybe they've fixed this by now, I dunno. [Though the wording in that blurb, "100% complete C++11 implementation on Apple's OS X" doesn't inspire confidence...]