I'm trying to compile my projects on Arch Linux x64 using libc++, libc++abi and clang++ 3.6.0.
The projects compile properly, but fail to link with the following error:
error: CMakeFiles/main.cpp.o: undefined reference to symbol '__cxa_thread_atexit@@CXXABI_1.3.7'
/usr/lib/libstdc++.so.6:-1: error: error adding symbols: DSO missing from command line
I'm compiling and linking using the -stdlib=libc++ -lc++abi
flags.
Is there any additional library I should link? Am I missing a flag?