<font size="2"><font face="tahoma,sans-serif">Hi;<br></font></font><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 4:42 PM, 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><div></div><div class="h5">On Jan 27, 2011, at 3:59 AM, İsmail Dönmez wrote:<br>
<br>
> Hi;<br>
><br>
> On Thu, Jan 27, 2011 at 2:27 AM, Howard Hinnant <<a href="mailto:hhinnant@apple.com">hhinnant@apple.com</a>> wrote:<br>
><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>
> 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>
><br>
> I tried to build on OSX 10.6 and looks like there is a problem with c++ includes:<br>
><br>
> + for FILE in '../src/*.cpp'<br>
> + clang++ -c -g -Os -fPIC -nostdinc++ -I../include ../src/condition_variable.cpp<br>
> ../src/condition_variable.cpp:15:1: warning: inline namespaces are a C++0x feature [-Wc++0x-extensions]<br>
> _LIBCPP_BEGIN_NAMESPACE_STD<br>
> ^<br>
> In file included from ../src/condition_variable.cpp:10:<br>
> In file included from ../include/condition_variable:110:<br>
> ../include/__config:151:52: note: instantiated from:<br>
> #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std {inline namespace _LIBCPP_NAMESPACE {<br>
>                                                    ^<br>
> 1 warning generated.<br>
> + for FILE in '../src/*.cpp'<br>
> + clang++ -c -g -Os -fPIC -nostdinc++ -I../include ../src/exception.cpp<br>
> ../src/exception.cpp:14:12: fatal error: 'cxxabi.h' file not found<br>
>   #include <cxxabi.h><br>
>            ^<br>
> 1 error generated.<br>
><br>
> Regards,<br>
> ismail<br>
><br>
<br>
</div></div>Sorry, I forgot a step:<br>
<br>
$ export TRIPLE=-apple-<br>
<br>
before you ./buildit.</blockquote><div><br></div><div>Tried;</div><div><br></div><div>TRIPLE=x86_64-apple-darwin10 ./buildit</div><div><br></div><div>and</div><div><br></div><div>TRIPLE=i386-apple-darwin10 ./buildit</div>

<div> </div><div>but it still can't find cxxabi.h.</div><div><br></div><div>Regards,</div><div>ismail</div><div><br></div></div>