[cfe-dev] question about -ccl option

Matthieu Brucher matthieu.brucher at gmail.com
Mon Apr 15 01:58:09 PDT 2013


Hi,

Did you try adding -xc++ on the command line?
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.

Matthieu


2013/4/15 Matt Funk <matze999 at gmail.com>

> Hi,
> 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
>
> I build from source:
> clang version 3.3 (trunk 179161)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
>
> For a regular 'Hello World' program:
> #include <iostream>
> int main() {
>     std::cout << "Heloo World!";
>   return 0;
> }
>
> 1)
> I can do: ~/clang/svn/build/Debug+Asserts/bin/clang++ -c HelloWorld.cpp
> without any problems
>
> 2)
> When i do:
> ~/clang/svn/build/Debug+Asserts/bin/clang++ -cc1 -ast-dump-xml
> HelloWorld.cpp
> it throws an error:
> HelloWorld.cpp:1:10: fatal error: 'iostream' file not found
> #include <iostream>
>
> I guess i am trying to understand why that is? I figure it knows the
> include paths since 1) works?
>
> thanks,
> matt
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


-- 
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher
Music band: http://liliejay.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130415/0295de1a/attachment.html>


More information about the cfe-dev mailing list