Re:GCC 4.8.1 released, C++11 feature complete
by dietrichepp on Saturday June 01, 2013 @08:35AM
(#5803707)
I 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.
[ Parent
| on HN ]
Re:GCC 4.8.1 released, C++11 feature complete
by zaphoyd on Saturday June 01, 2013 @10:16AM
(#5804021)
When 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++.
Re:GCC 4.8.1 released, C++11 feature complete
by livingparadox on Saturday June 01, 2013 @11:14AM
(#5804249)
I 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...