Using the new C++11 stack on 9.1

2012-12-31 Thread Marcus Karlsson
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.

What should I do in order to use it? I have not found much documentation
on it other than it will be the default in 10.

Marcus
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Using the new C++11 stack on 9.1

2012-12-31 Thread Herbert J. Skuhra
On Mon, 31 Dec 2012 11:39:27 +0100
Marcus Karlsson  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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"