<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I downloaded the 3.1 LLVM and Clang sources.</span></div><div><span><br></span></div><div><span>I followed the directions at: http://clang.llvm.org/get_started.html</span></div><div><span><br></span></div><div><span>I am able to use Clang to compile stuff, but I could already do that with GCC.</span></div><div><span><br></span></div><div><span>I'm trying to use Clang for parsing code, but I can't even get started.</span></div><div><span><br></span></div><div><span>Can you tell me how to "</span><span style="font-size: 12pt; ">include the installed location of</span><span style="font-size: 12pt; "> </span><span style="font-size: 12pt; ">clang/llvm headers directories in your include path"?</span></div><div><br></div><div>Thanks!<br><div><span><br></span></div><div><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> <br><b><span style="font-weight: bold;">Cc:</span></b> Chad Rosier <mcrosier@apple.com>; "llvmdev@cs.uiuc.edu" <llvmdev@cs.uiuc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 9, 2012 2:39 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LLVMdev] Unable to do even basic Clang tutorial<br> </font> </div> <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> </div> </div> </div></div></body></html>