[cfe-dev] Unable to do even basic Clang tutorial

NY Knicks Fan nyknicksfan92009 at yahoo.com
Mon Jul 9 15:17:48 PDT 2012


Is there an up-to-date tutorial that you can recommend?

I haven't been able to successfully do anything at all on Clang except compile stuff.

The python bindings don't work for me either.



________________________________
 From: Sean Silva <silvas at purdue.edu>
To: NY Knicks Fan <nyknicksfan92009 at yahoo.com> 
Cc: "cfe-dev at cs.uiuc.edu" <cfe-dev at cs.uiuc.edu> 
Sent: Monday, July 9, 2012 2:47 PM
Subject: Re: [cfe-dev] Unable to do even basic Clang tutorial
 
That tutorial is pretty old; I wouldn't be surprised if headers have
moved around or otherwise broken the tutorial. You also might need to
use `llvm-config` to get certain flags that are needed for compiling
with LLVM/Clang.

Lack of good tutorials is currently one of LLVM/Clang's biggest
documentation deficiencies (if not *the* biggest). If there's a
certain tutorial that you would like to see, please let us know. I
can't promise anything, but it's worth vocalizing these things so that
they have a sliver of a chance of getting done.

--Sean Silva


On Mon, Jul 9, 2012 at 11:34 AM, NY Knicks Fan
<nyknicksfan92009 at yahoo.com> 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.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120709/5ded819b/attachment.html>


More information about the cfe-dev mailing list