<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Nitin,<br>
<br>
The LLVM and Clang header files #include other LLVM and Clang
header files. Therefore, when compiling your code with gcc or
clang, you need to add the -I option to tell the compiler where to
find these header files. The -I option can be used multiple times
to specify multiple locations for which to look for header files.<br>
<br>
For example, if a header file is located in /u/criswell/foo/bar.h,
then adding -I/u/criswell to the gcc/clang command line will allow
me to use #include <foo/bar.h> in my source code.<br>
<br>
The reason why your code compiles when added to the LLVM/Clang
source trees is that the LLVM Makefiles add the appropriate -I
options for you.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
On 10/24/14, 9:55 PM, Nitin Mukesh Tiwari wrote:<br>
</div>
<blockquote cite="mid:7b02d8d6-fa07-4b97-a01d-bcd60cfb57a5@me.com"
type="cite">
<div>Dear LLVM Team<br>
<br>
I have installed LLVM and have also tried of using examples for
learning LLVM. <br>
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. <br>
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 ? <br>
<br>
Thanks and Regards<br data-mce-bogus="1">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>