[cfe-dev] libcxx install location?

Larry Evans cppljevans at suddenlink.net
Sat Feb 5 06:05:54 PST 2011


On 02/05/11 07:52, Jean-Daniel Dupas wrote:
> 
> Le 5 févr. 2011 à 14:26, Larry Evans a écrit :
[snip]
>> Am I missing something?
> 
> I don't have access to my linux machine right now, so I cannot test, but I think you can link on libstdc++ to get the missing symbols (just adding -lstdc++ to the linker flags should be enough).
> 
> It should not conflict with libc++ symbols as libc++ uses inline namespace, and so mangle the standard symbols differently than the libstdc++.
> 
> This is what we use to do on OS X before we got a separate libc++abi library.
> 
> -- Jean-Daniel

Thanks Jean; however, I'm getting the same error:

make compile
/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++ -c
-stdlib=libc++ move.cpp -o move.o
/home/evansl/download/llvm/svn/build/Debug+Asserts/bin/clang++
-stdlib=libc++ -lstdc++ move.o -o move.exe
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib64/libc++.so:
undefined reference to `__cxa_free_exception'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib64/libc++.so:
undefined reference to `__cxa_begin_catch'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib64/libc++.so:
undefined reference to `__cxa_guard_release'
...

-Larry




More information about the cfe-dev mailing list