[cfe-dev] Clang 3.1: Can't link Hello World-program program on Linux
David Chisnall
csdavec at swan.ac.uk
Thu Mar 1 03:03:53 PST 2012
On 1 Mar 2012, at 10:03, Alexander Korsunsky wrote:
> With the "--stdlib=libc++" option, the linking of the program fails,
> asking for some symbols from the CXXABI:
>
> What did I do wrong? Is Clang or libcxx misconfigured, or is this a
> compiler bug? How could I fix or work around the issue?
libc++ does not provide the ABI layer, just the STL layer. You need another library for the ABI. You may be able to link to libstdc++ and get libsupc++ indirectly. Alternatively, try using libcxxrt:
https://github.com/pathscale/libcxxrt/
David
More information about the cfe-dev
mailing list