[cfe-dev] Clang tutorial

Eli Friedman eli.friedman at gmail.com
Wed May 27 02:38:10 PDT 2009


On Wed, May 27, 2009 at 1:57 AM, Simone Pellegrini
<spellegrini at dps.uibk.ac.at> wrote:
> Hello,
> thanks for the example but this is what I am currently doing in my program.
>
> The problem is that every time I include some header like stdio.h in my code
> I get this error from the parser:
>
> Adding /home/spellegrini/shared/openmpi-1.3.2-gcc433/include
> ** Parsing file: bench/example.c **
> initialize
> In file included from bench/example.c:7:
> /home/spellegrini/shared/llvm/lib/clang/1.0/include//stdarg.h:29:9: error:
> unknown type name '__builtin_va_list'
>
> This was not happening with previous versions of CLANG, so what has been
> changed? What's the problem with this __builtin_va_list??
> How can I make clang able to parse it without complaining?

My best guess is that you're missing a call to InitializePreprocessor.

-Eli



More information about the cfe-dev mailing list