<div class="gmail_quote">On Fri, Aug 27, 2010 at 8:11 PM, Fernando Pelliccioni <span dir="ltr"><<a href="mailto:fpelliccioni@gmail.com">fpelliccioni@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br><br>I am trying to compile a simple "Hello World" C++ sample using clang ( with IOStreams ).<br>clang was built with MinGW (GCC 4.6) on Windows.<br><br>I got this error when I try to compile<br><span style="font-family: courier new,monospace;">    </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">            helloworld.cpp:4:10: fatal error: 'iostream' file not found</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            #include <iostream></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">                     ^</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            1 error generated.</span><br><br>

It seems that clang is not "linked" with the MinGW headers by default.<br>I will try to correct this issue, but I would like someone guide me on where is the code that detect the compiler headers.<br>Steven Watanabe said me that he made the patch to find the MSVC 10.0 headers.Steve, I think that you could help me.<br>

<br>Can someone give me a hand?<br><br>Thanks,<br><font color="#888888">Fernando.<br>
</font></blockquote></div><br><span id="result_box" class="short_text"><span style="" title=""><br>Sorry, I
 did not say anything ...<br></span></span><br><br><div style="margin-left: 40px;">"Look for the comment "FIXME: temporary hack:
    hard-coded paths" in <tt>clang/lib/Frontend/InitHeaderSearch.cpp</tt>
 and
    change the lines below to include that path."<br><br></div><br>Fernando.<br><ol><li><br></li></ol><br>