<div dir="ltr"><div><div><div><div><div>When building an llvm project, I followed the steps outlined here: <a href="http://llvm.org/docs/Projects.html" target="_blank">http://llvm.org/docs/Projects.html</a> and copied the sample project from /projects/sample.<br>


<br></div>This compiles just fine. However, when I try to include llvm headers, compilation fails with the error:<br><br>In file included from /home/eks/projects/cfg/tools/cfg/main.c:9:<br>In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/Module.h:18:<br>


In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/Function.h:21:<br>In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/GlobalValue.h:21:<br>In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/Constant.h:17:<br>


In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/User.h:22:<br>In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/Support/ErrorHandling.h:19:<br>In file included from /home/eks/projects/llvm/llvm-svn/include/llvm/ADT/StringRef.h:13:<br>


/home/eks/projects/llvm/llvm-svn/include/llvm/Support/type_traits.h:21:10: fatal error: 'cstddef' file not found<br>#include <cstddef><br><br><br></div>It seems that when trying to include llvm headers, compilation always fails, citing various missing c++ system headers. <br>


<br></div>How does one include llvm headers in the sample project without running in to this problem? <br><br></div>also,
 is autoconf really the best way to be building llvm projects? It seems 
like most projects use cmake instead, but I wasn't able to find llvm 
documentation for setting up a sample project with cmake.<br></div>thanks!<br></div>