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 Артем Зуйков <chertus@gmail.com> wrote: > Hi, > > I can't build anything with clang & libc++ > What am I doing wrong? > > > > clang++ -stdlib=libc++ 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. > > > > A part of /usr/include/stdlib.h > > #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L > _Noreturn void > quick_exit(int); > int at_quick_exit(void (*)(void)); > #endif /* __ISO_C_VISIBLE >= 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=c++11 -stdlib=libc++ test1.cpp -o x or '-std=c++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>
