[LLVMbugs] [Bug 12846] New: Tutorial for c parser does not compile. (as at 16 May 2012)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 16 04:15:39 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12846

             Bug #: 12846
           Summary: Tutorial for c parser does not compile. (as at 16 May
                    2012)
           Product: Documentation
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mikew at ebi.ac.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I downloaded 3.0 from svn as per tutorial 2.

My system is RedHat 6.1. gcc version 4.4.6

I have tried various tutorials but have been unable to build any of them:

1. https://github.com/loarabia/Clang-tutorial/wiki/TutorialOrig
2. http://amnoid.de/tmp/clangtut/tut.html

either by copy and pasting the code from the web page or by downloading the
files. (the two sources are quite different)

In 1. the first line in the web page code is 
clang::DiagnosticsEngine *pDiagnosticsEngine =
    new clang::DiagnosticsEngine(pDiagIDs, pTextDiagnosticPrinter);

pDiagIDs and pTextDiagnosticPrinter are not defined

2. The class DiagnosticClient in PPContext.h is not defined in any include file
(that I can find)

I would appreciate help in producing a simple example which parses a c++
program.

Thanks

Regards
Mike

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list