From owner-freebsd-questions@FreeBSD.ORG Fri Aug 10 07:09:28 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF48F106566C for ; Fri, 10 Aug 2012 07:09:27 +0000 (UTC) (envelope-from bunchou@googlemail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 734438FC12 for ; Fri, 10 Aug 2012 07:09:27 +0000 (UTC) Received: by bkcje9 with SMTP id je9so489386bkc.13 for ; Fri, 10 Aug 2012 00:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=RY3nEfKHeS2nD7RGnxOHlwsua2tIfZwr0I4BBccagL4=; b=DbRu+TBVzvpqQ6WnvDSKXfHC7nSitZmQuTdjI3V+LNoX3wrtChheueKrGExJmDuPkV Ux47XNkbqOdUXRDIJgKFsgt3DYl0YEsMYVWuD7VtwXFE23li4Z6ZnY4yumqzttjg7nx7 MMz09Ln0uC0gDN1vpH50YJzR+zJCz7g9++mAXZK1kUv8in7nd3XpBCcxWgORkKaxzLsk 4OULZCzSJnwIa0C7wsfz9GZyQACULCiN3Oh5eQxIxRcgw2kSlK6AltU5K7VcDne6Nxse 5v3xUY8/49ZTMvsKhHVMJcH9kbIMQRZbr9vLPhBISNpgha8zapXsd/BLGQs3Q3AXd9Ro 7qeA== Received: by 10.204.132.77 with SMTP id a13mr738343bkt.99.1344582566081; Fri, 10 Aug 2012 00:09:26 -0700 (PDT) Received: from kuro.5550h.net (p5DC27253.dip.t-dialin.net. [93.194.114.83]) by mx.google.com with ESMTPS id hg13sm1586572bkc.7.2012.08.10.00.09.16 (version=SSLv3 cipher=OTHER); Fri, 10 Aug 2012 00:09:17 -0700 (PDT) Date: Fri, 10 Aug 2012 09:09:15 +0200 From: "=?UTF-8?B?5paH6bOl?=" To: freebsd-questions@freebsd.org Message-ID: <20120810090915.3883c652@kuro.5550h.net> In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Clang with libc++ doesn't find quuick_exit() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2012 07:09:28 -0000 On Fri, 10 Aug 2012 02:21:28 +0400 =D0=90=D1=80=D1=82=D0=B5=D0=BC =D0=97=D1=83=D0=B9=D0=BA=D0=BE=D0=B2 wrote: > Hi, >=20 > I can't build anything with clang & libc++ > What am I doing wrong? >=20 >=20 > > clang++ -stdlib=3Dlibc++ test1.cpp -o x > In file included from test1.cpp:1: > /usr/include/c++/v1/cstdlib:134:9: error: no member named > 'at_quick_exit' in the global namespace > using ::at_quick_exit; > ~~^ > /usr/include/c++/v1/cstdlib:135:9: error: no member named > 'quick_exit' in the global namespace > using ::quick_exit; > ~~^ > 2 errors generated. >=20 >=20 >=20 > A part of /usr/include/stdlib.h >=20 > #if __ISO_C_VISIBLE >=3D 2011 || __cplusplus >=3D 201103L > _Noreturn void > quick_exit(int); > int at_quick_exit(void (*)(void)); > #endif /* __ISO_C_VISIBLE >=3D 2011 */ > Hi, quick_exit() has only become available in C++ as part of the C++11 standard. Thus you will have to invoke clang++ as follows: clang++ -std=3Dc++11 -stdlib=3Dlibc++ test1.cpp -o x or '-std=3Dc++0x' if you're using an older version of clang++ Best regards