<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>