[LLVMdev] Query regarding LLVM library for compilation
llvmdev.9755590 at .nctu.edu.tw
Mon Oct 27 00:18:25 PDT 2014
On Sat, Oct 25, 2014 at 01:55:44AM +0000, Nitin Mukesh Tiwari wrote:
> Dear LLVM Team
> I have installed LLVM and have also tried of using examples for learning LLVM.
> I am really sorry if this is a silly question but I tried writing one file for clang++ which uses some header file from LLVm nad clang like verifier.h.
> I could not compile as the error was thrown that verifier.h not found even when I have the exact path. But when I put my file in example folder and made changes to makefile and build the examples by running make file everything just worked fine. My query is is ther any way that my system automatically finds the header for LLVm and clang whenever I use them like it does for stdio.h and iostream.h or I need to build the example again and again ?
The tool llvm-config  might solve your problem, it will give you
the correct compiler and linker flags. Just make sure the llvm-config
you invoked is the right one.
Wei-Ren Chen (陳韋任)
More information about the llvm-dev