[cfe-dev] LibTooling include changement only.

Marman Moi marman.email at gmail.com
Sun Sep 2 08:03:16 PDT 2012


Good afternoon,

Sorry for my bad english, and my stupid question, but I'm facing a big 
understanding issue, and I can't figure out what is wrong.

I'm new to clang tooling development, and I'm trying to create a Code 
Style Checker based on clang front-end.

I'm building my tool out of clang sources, with a home installation of 
llvm trunk (r163087).

I just copied the main of clang-check, and only change #include 
directives from double quotes ("") to brackets (<>) so it does compile.

But when I try to run such a program on a simple file as

// file simple.cc
#include <iostream>
int
main(int argc, char* argv[]
{
   std::cout << "Hello World" << std::endl;
   return 0;
}

I got the error stdarg.h file not found from wchar.h file when I run my 
program, error which does not occur when I simply run clang-check from 
the installation directory.

Does anyone has some idea on what is going on, and what did I do wrong ?

Many thanks in advance,

-- 
Armand /Marman/ Leclercq
EPITA 2013 ACU
06 71 57 90 73
Computer Science is embarrassed by the computer. --Alan Perlis



More information about the cfe-dev mailing list