From owner-freebsd-questions@FreeBSD.ORG Mon Dec 31 10:58:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A56AD96D for ; Mon, 31 Dec 2012 10:58:57 +0000 (UTC) (envelope-from mk@acc.umu.se) Received: from mail.acc.umu.se (mail.acc.umu.se [130.239.18.156]) by mx1.freebsd.org (Postfix) with ESMTP id 590408FC0A for ; Mon, 31 Dec 2012 10:58:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 9EADA1BF for ; Mon, 31 Dec 2012 11:39:29 +0100 (MET) X-Virus-Scanned: amavisd-new at acc.umu.se Received: from acc.umu.se (kennedy.acc.umu.se [IPv6:2001:6b0:e:2018::157]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mk) by mail.acc.umu.se (Postfix) with ESMTPSA id B6A331BE for ; Mon, 31 Dec 2012 11:39:28 +0100 (MET) Date: Mon, 31 Dec 2012 11:39:27 +0100 From: Marcus Karlsson To: freebsd-questions@freebsd.org Subject: Using the new C++11 stack on 9.1 Message-ID: <20121231103927.GB5525@acc.umu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2012 10:58:57 -0000 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