<font size="2"><font face="tahoma,sans-serif">Hi;<br></font></font><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 2:27 AM, Howard Hinnant <span dir="ltr"><<a href="mailto:hhinnant@apple.com">hhinnant@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Jan 26, 2011, at 6:22 PM, Jean-Daniel Dupas wrote:<br>
<br>
><br>
> Le 26 janv. 2011 à 22:45, Douglas Gregor a écrit :<br>
><br>
>> Clang has recently gotten much-improved support for the upcoming C++0x standard. In particular, top-of-tree Clang now supports a number of C++0x features:<br>
>><br>
>>      - Rvalue references (including rvalue references for *this)<br>
>>      - Variadic templates<br>
>>      - Inline namespaces<br>
>>      - Late-specified return types<br>
>>      - Decltype<br>
>><br>
>> You can turn on C++0x support with the -std=gnu++0x (or, if you want to be more pedantic, -std=c++0x).<br>
>><br>
>> Give it a spin, write some tests, try it out with libc++, and tell us how it went! And if you get the itch to hack on Clang, there are a ton of other little C++0x features that you could implement.<br>
>><br>
><br>
> A quick reminder about "How to use libc++ with clang" will be welcome at this point ;-)<br>
<br>
</div>It depends on the platform.  On OS X 10.6, download this library:<br>
<br>
<a href="http://home.roadrunner.com/~hinnant/libcppabi.zip" target="_blank">http://home.roadrunner.com/~hinnant/libcppabi.zip</a><br>
<br>
and copy it into /usr/lib .<br>
<br>
This is a low-level library that takes care of things like typeinfo and exception propagation.  Once that is taken care of:<br>
<br>
$ clang++ -stdlib=libc++ test.cpp<br>
<br>
This will assume that /usr/lib/libc++.dylib exists.  And the libc++ headers should be installed at /usr/include/c++/v1/ .<br></blockquote><div><br></div><div>I tried to build on OSX 10.6 and looks like there is a problem with c++ includes:</div>

<div><br></div><div>+ for FILE in '../src/*.cpp'</div><div>+ clang++ -c -g -Os -fPIC -nostdinc++ -I../include ../src/condition_variable.cpp</div><div>../src/condition_variable.cpp:15:1: warning: inline namespaces are a C++0x feature [-Wc++0x-extensions]</div>

<div>_LIBCPP_BEGIN_NAMESPACE_STD</div><div>^</div><div>In file included from ../src/condition_variable.cpp:10:</div><div>In file included from ../include/condition_variable:110:</div><div>../include/__config:151:52: note: instantiated from:</div>

<div>#define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE {</div><div>                                                   ^</div><div>1 warning generated.</div><div>+ for FILE in '../src/*.cpp'</div>

<div>+ clang++ -c -g -Os -fPIC -nostdinc++ -I../include ../src/exception.cpp</div><div>../src/exception.cpp:14:12: fatal error: 'cxxabi.h' file not found</div><div>  #include <cxxabi.h></div><div>           ^</div>

<div>1 error generated.</div><div><br></div><div>Regards,</div><div>ismail</div><div> </div></div>