2 ms·
You can use libstdc++ with Clang (-stdlib=libstdc++) and libc++ with GCC (-nostdlib along with adding the libraries and include paths manually). In fact, libstd
by account42 4y ago
You can use libstdc++ with Clang (-stdlib=libstdc++) and libc++ with GCC (-nostdlib along with adding the libraries and include paths manually). In fact, libstdc++ tends to be the default for Clang installs on Linux for ABI-compatibility with GCC-compiled C++ libraries unless you pass -stdlib=libc++.