6 ms·
Is the lib tied to the compiler, or are they interchangeable?
by michielvoo 13y ago
Is 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...