Skip to content

Cannot build tutorial 3. #28

Description

@AndreasGe0

Hello,

After following your tutorial I cannot build tutorial 3. It keeps giving me an error on line 85:
invalid initialization of reference of type ‘const clang::PCHContainerReader&’ from expression of type ‘clang::FrontendOptions’
frontendOptions);

I am compiling it with the following command:
g++ llvm-config --cxxflags --ldflags tutorial3.cpp $CLANG_LIBS llvm-config --libs --system-libs -o tutorial3

where $CLANG_LIBS = "-lclangTooling -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization -lclangCodeGen -lclangParse -lclangSema -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangAnalysis -lclangARCMigrate -lclangRewrite -lclangRewriteFrontend -lclangEdit -lclangAST -lclangLex -lclangBasic -lclang"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions