[LLVMdev] Sample Project can't reference llvm headers

Ryan Welton rwelton24 at gmail.com
Thu Jan 16 22:14:40 PST 2014

The sample project (project/sample) builds fine out of the tree until you
try to use a llvm header.  What is the correct way to get this sample
project access to the llvm headers?

/* LLVM Header File*/
#include "llvm/Support/DataTypes.h"

llvm[2]: Compiling sample.c for Release+Asserts build
sample.c:14:10: fatal error: 'llvm/Support/DataTypes.h' file not found
#include "llvm/Support/DataTypes.h"
1 error generated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140117/92fb2b47/attachment.html>

More information about the llvm-dev mailing list