Date: Fri, 10 Aug 2012 09:09:15 +0200 From: "=?UTF-8?B?5paH6bOl?=" <bunchou@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: Clang with libc++ doesn't find quuick_exit() Message-ID: <20120810090915.3883c652@kuro.5550h.net> In-Reply-To: <CAHCVeqNQcD-B54USZWfNyRqd_UgzO4TbuF9EeaDm4qa45BYPtg@mail.gmail.com> References: <CAHCVeqNQcD-B54USZWfNyRqd_UgzO4TbuF9EeaDm4qa45BYPtg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <chertu= s@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120810090915.3883c652>