Hi Marc,<br><br>Just as you pointed out, it was boost's fault. Patching flex_string.hpp like<br><br>--- ./boost/wave/util/flex_string.hpp.orig    2011-09-10 18:15:29.916482429 +<br>0900<br>+++ ./boost/wave/util/flex_string.hpp    2011-09-10 18:18:58.687781264 +0900<br>
@@ -103,7 +103,7 @@<br> #include <limits><br> #include <stdexcept><br> <br>-#if defined(__PATHSCALE__)<br>+#if defined(__PATHSCALE__) || defined(__clang__)<br>   #include <ios><br> #else<br>   #include <iosfwd><br>
<br>fixed the problem, though I still have other boost issues.<br>Anyway, thanks for the tip! I appreciate it.<br><br>Regards,<br><br>Ryuta<br><br><div class="gmail_quote">On Sat, Sep 10, 2011 at 5:38 PM, Marc Glisse <span dir="ltr"><<a href="mailto:marc.glisse@inria.fr">marc.glisse@inria.fr</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">On Sat, 10 Sep 2011, Ryuta Suzuki wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've got the following compilation error while attempting to build<br>
boost-1.47.0 with 'clang++ -stdlib=libc++':<br>
</blockquote></div>
[...]<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In file included from ../boost/wave/wave_config.hpp:<u></u>229:<br>
../boost/wave/util/flex_<u></u>string.hpp:2573:34: error: incomplete type<br>
'std::__1::ios_base' named in nested name specifier<br>
                is.setstate(std::ios_base::<u></u>eofbit);<br>
                            ~~~~~^~~~~~~~~~<br>
/usr/include/c++/v1/iosfwd:95:<u></u>7: note: forward declaration of<br>
'std::__1::ios_base'<br>
class ios_base;<br>
      ^<br>
</blockquote>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is this a bug in libc++ or something wrong with boost itself?<br>
</blockquote>
<br></div>
With boost I'd say. It looks like:<br>
<br>
#if defined(__PATHSCALE__)<br>
  #include <ios><br>
#else<br>
  #include <iosfwd><br>
#endif<br>
<br>
but ios_base is in <ios> so that one should be included always.<br>
<br>
-- <br><font color="#888888">
Marc Glisse<br>
</font></blockquote></div><br>