[cfe-dev] Problem building Clang in Eclipse

Jonathan Sauer jonathan.sauer at gmx.de
Mon Oct 10 07:08:52 PDT 2011


>> Eclipse builds the project (llvm) successfully as I receive no 
>> compilation or link errors and I see executables including "clang" in 
>> directory bin under build. However, when I open any source file, such 
>> as CFG.cpp, Eclipse shows numerous compilation errors related to 
>> unresolved symbols. I am wondering if I have missed something in the 
>> steps. Could you please help me?
> 
> I see the same thing in the Windows version of Eclipse-CDT. I think this 
> is because LLVM+clang relies heavily on TableGen generated files, which 
> include #defines that the Eclipse just doesn't understand. Maybe setting 
> the appropiate include dirs may solve some of them.

In that case, you would have to add the TableGen runs to the project as
custom build steps (I forget what they are called in Eclipse), so the generated
include files exist. Then point Eclipse to the correct directory, and it should
pick them up.


Hope that helps,
Jonathan





More information about the cfe-dev mailing list