I'm trying to do the tutorials at: https://github.com/loarabia/Clang-tu...i/TutorialOrig and I can't even do the first tutorial. I installed LLVM 3.1 and Clang 3.1 and when I do: ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file included from tutorial1.cpp:5: In file included from ./llvm/Support/raw_ostream.h:17: ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: 'llvm/Support/type_traits.h' file not found include "llvm/Support/type_traits.h" ^ 1 error generated. Do you know what I am doing wrong? I'm not sure what is the best way to handle this header file problem. I'm running Ubuntu 12.04. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120709/d62c774b/attachment.html>
Have you looked here: http://clang.llvm.org/get_started.html Chad On Jul 9, 2012, at 11:33 AM, NY Knicks Fan wrote:> I'm trying to do the tutorials at: > > https://github.com/loarabia/Clang-tu...i/TutorialOrig > > and I can't even do the first tutorial. I installed LLVM 3.1 and Clang 3.1 and when I do: > > ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file included from tutorial1.cpp:5: In file included from ./llvm/Support/raw_ostream.h:17: ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: 'llvm/Support/type_traits.h' file not found > > include "llvm/Support/type_traits.h" > ^ > 1 error generated. > > Do you know what I am doing wrong? I'm not sure what is the best way to handle this header file problem. > > I'm running Ubuntu 12.04. > > Thank you. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120709/59878205/attachment.html>
On 7/9/2012 1:42 PM, Chad Rosier wrote:> Have you looked here: http://clang.llvm.org/get_started.html > > Chad > > > On Jul 9, 2012, at 11:33 AM, NY Knicks Fan wrote: > >> I'm trying to do the tutorials at: >> >> https://github.com/loarabia/Clang-tu...i/TutorialOrig >> <https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig> >> >> and I can't even do the first tutorial. I installed LLVM 3.1 and Clang >> 3.1 and when I do: >> >> ~/loarabia-Clang-tutorial-3d79443$ clang++ tutorial1.cpp In file >> included from tutorial1.cpp:5: In file included from >> ./llvm/Support/raw_ostream.h:17: >> ./llvm/Support/llvm/ADT/StringRef.h:13:10: fatal error: >> 'llvm/Support/type_traits.h' file not found >> >> include "llvm/Support/type_traits.h" >> ^ >> 1 error generated. >> >> Do you know what I am doing wrong? I'm not sure what is the best way >> to handle this header file problem. >> >> I'm running Ubuntu 12.04. >> >> Thank you.Did you build it or "install" it from a package? If you build it, then you need do a 'make install' and include the installed location of clang/llvm headers directories in your include path.