Using the new C++11 stack on 9.1

Herbert J. Skuhra hskuhra at eumx.net
Mon Dec 31 11:09:47 UTC 2012


On Mon, 31 Dec 2012 11:39:27 +0100
Marcus Karlsson <mk at acc.umu.se> wrote:

> Hello.
> 
> I was very happy when I received the 9.1 announcement in my mailbox,
> especially when I read about the inclusion of the new C++11 stack
> including LLVM libc++ and libcxxrt. So I decided to test it on a 9.1
> system:
> 
>     clang++ foo.cc -stdlib=libc++
> 
> However, the compilation fails:
> 
>     /usr/bin/ld: cannot find -lc++
> 
> It's available in the source tree for 9.1, my assumption is that it's
> just not installed by default.

# echo "WITH_LIBCPLUSPLUS=" >> /etc/src.conf

And rebuilding world/clang.

-- 
Herbert


More information about the freebsd-questions mailing list