<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Hi Ashok,</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>The documentation suggests that I put clang inside of llvm/tools and so I have two separate include directories.  I tried both of them and neither worked:</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div><span><div>$ clang++ -I llvm/include tutorial1.cpp </div><div>In file included from tutorial1.cpp:5:</div><div>In file included from llvm/include/llvm/Support/raw_ostream.h:17:</div><div>In file included from
 llvm/include/llvm/ADT/StringRef.h:13:</div><div>llvm/include/llvm/Support/type_traits.h:20:10: fatal error: 'llvm/Support/DataTypes.h' file not found</div><div>#include "llvm/Support/DataTypes.h"</div><div>         ^</div><div>1 error generated.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div>$ clang++ -I llvm/tools/clang/include/ tutorial1.cpp </div><div>tutorial1.cpp:5:10: fatal error: 'llvm/Support/raw_ostream.h' file not found</div><div>#include "llvm/Support/raw_ostream.h"</div><div>         ^</div><div>1 error generated.</div></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Any help you can provide is very much appreciated.</div></span></div><div style="font-family: 'times new roman',
 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Ashok Nalkund <ashoknn@qualcomm.com><br> <b><span style="font-weight: bold;">To:</span></b> NY Knicks Fan <nyknicksfan92009@yahoo.com>; "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 9, 2012 3:30 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Unable to do even basic Clang tutorial<br> </font> </div> <br>Use the -I<install path>/include .<br><br>This directory <install path>/include should look something like:<br><br>clang/  clang-c/  llvm/ 
 llvm-c/<br><br>HTH<br>ashok<br><br>On 7/9/2012 3:15 PM, NY Knicks Fan wrote:<br>> I downloaded the 3.1 LLVM and Clang sources.<br>><br>> I followed the directions at: <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>><br>> I am able to use Clang to compile stuff, but I could already do that<br>> with GCC.<br>><br>> I'm trying to use Clang for parsing code, but I can't even get started.<br>><br>> Can you tell me how to "include the installed location ofclang/llvm<br>> headers directories in your include path"?<br>><br>> Thanks!<br>><br>><br>> ------------------------------------------------------------------------<br>> *From:* Ashok Nalkund <<a ymailto="mailto:ashoknn@qualcomm.com" href="mailto:ashoknn@qualcomm.com">ashoknn@qualcomm.com</a>><br>> *To:* NY Knicks Fan <<a ymailto="mailto:nyknicksfan92009@yahoo.com"
 href="mailto:nyknicksfan92009@yahoo.com">nyknicksfan92009@yahoo.com</a>><br>> *Cc:* Chad Rosier <<a ymailto="mailto:mcrosier@apple.com" href="mailto:mcrosier@apple.com">mcrosier@apple.com</a>>; "<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>"<br>> <<a ymailto="mailto:llvmdev@cs.uiuc.edu" href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>><br>> *Sent:* Monday, July 9, 2012 2:39 PM<br>> *Subject:* Re: [LLVMdev] Unable to do even basic Clang tutorial<br>><br>> On 7/9/2012 1:42 PM, Chad Rosier wrote:<br>>  > Have you looked here: <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>>  ><br>>  >  Chad<br>>  ><br>>  ><br>>  > On Jul 9, 2012, at 11:33 AM, NY Knicks Fan wrote:<br>>  ><br>>  >> I'm trying to do the
 tutorials at:<br>>  >><br>>  >> <a href="https://github.com/loarabia/Clang-tu...i/TutorialOrig" target="_blank">https://github.com/loarabia/Clang-tu...i/TutorialOrig</a><br>>  >> <<a href="https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig" target="_blank">https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig</a>><br>>  >><br>>  >> and I can't even do the first tutorial. I installed LLVM 3.1 and Clang<br>>  >> 3.1 and when I do:<br>>  >><br>>  >> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file<br>>  >> included from tutorial1.cpp:5: In file included from<br>>  >> ./llvm/Support/raw_ostream.h:17:<br>>  >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error:<br>>  >> 'llvm/Support/type_traits.h' file not found<br>>  >><br>> 
 >> include "llvm/Support/type_traits.h"<br>>  >> ^<br>>  >> 1 error generated.<br>>  >><br>>  >> Do you know what I am doing wrong? I'm not sure what is the best way<br>>  >> to handle this header file problem.<br>>  >><br>>  >> I'm running Ubuntu 12.04.<br>>  >><br>>  >> Thank you.<br>><br>> Did you build it or "install" it from a package? If you build it, then<br>> you need do a 'make install' and include the installed location of<br>> clang/llvm headers directories in your include path.<br>><br>><br>><br>><br>><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/"
 target="_blank">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>><br><br><br><br> </div> </div>  </div></body></html>