[cfe-dev] Basic source-to-source transformation with Clang

John McCall rjmccall at apple.com
Thu Jun 21 18:17:03 PDT 2012

On Jun 20, 2012, at 1:15 AM, Satya Prakash Prasad wrote:
> Thanks for your response but I am using g++ compiler:
> g++ rewritersample.cpp -fno-rtti -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS -o rewritersample \
>                -Illvm/build/include <paths>
> -Lllvm/build/Release+Asserts/lib(s)
> Is there any compiler option that I need to add?
> Please let me know how to overcome the problem?

I meant that the clang instance your program creates is compiling its input as C,
not that you are compiling your program as C.


More information about the cfe-dev mailing list