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"
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 --ldflagstutorial3.cpp $CLANG_LIBSllvm-config --libs --system-libs-o tutorial3where $CLANG_LIBS = "-lclangTooling -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization -lclangCodeGen -lclangParse -lclangSema -lclangStaticAnalyzerFrontend -lclangStaticAnalyzerCheckers -lclangStaticAnalyzerCore -lclangAnalysis -lclangARCMigrate -lclangRewrite -lclangRewriteFrontend -lclangEdit -lclangAST -lclangLex -lclangBasic -lclang"