<div dir="ltr">Hi,<div><br></div><div style>Did you try adding -xc++ on the command line?</div><div style>I'm also new to the list, but I think I saw sometime this issue when it "forgot" that it was compiling C++ and so lost the C++ include folders.</div>
<div style><br></div><div style>Matthieu</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/15 Matt Funk <span dir="ltr"><<a href="mailto:matze999@gmail.com" target="_blank">matze999@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br></div>i am very new to clang so if there is documentation i overlooked please point me to it. My question relates to the 'ccl' option as i am trying to print the Abstract Syntax Tree<br>

<br>I build from source:<br>clang version 3.3 (trunk 179161)<br>Target: x86_64-unknown-linux-gnu<br>Thread model: posix<br></div><br></div>For a regular 'Hello World' program:<br>#include <iostream><br>int main() {<br>

    std::cout << "Heloo World!";<br>  return 0;<br>}<br><br>1)<br></div>I can do: ~/clang/svn/build/Debug+Asserts/bin/clang++ -c HelloWorld.cpp<br></div>without any problems<br><br>2)<br></div>When i do:<br>

~/clang/svn/build/Debug+Asserts/bin/clang++ -cc1 -ast-dump-xml HelloWorld.cpp<br></div>it throws an error:<br>HelloWorld.cpp:1:10: fatal error: 'iostream' file not found<br>#include <iostream><br><br></div>
I guess i am trying to understand why that is? I figure it knows the include paths since 1) works?<br>
</div><br></div>thanks,<br>matt<br><div><br><div><div><br></div></div></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Information System Engineer, Ph.D.<br>Blog: <a href="http://matt.eifelle.com" target="_blank">http://matt.eifelle.com</a><span style="padding-right:16px;width:16px;height:16px"></span><span style="padding-right:16px;width:16px;height:16px"></span><br>
LinkedIn: <a href="http://www.linkedin.com/in/matthieubrucher" target="_blank">http://www.linkedin.com/in/matthieubrucher</a><span style="padding-right:16px;width:16px;height:16px"></span><br>Music band: <a href="http://liliejay.com/" target="_blank">http://liliejay.com/</a><span style="padding-right:16px;width:16px;height:16px"></span><br>
<span style="padding-right:16px;width:16px;height:16px"></span>
</div>