[cfe-dev] Linking clang on linux
Kim
soldoutseashell at gmail.com
Thu Jun 12 06:58:31 PDT 2014
I'm trying to get my project (which uses clang) to build on linux and
I'm running into a unresolved symbol error while loading one of the modules:
undefined symbol:
_ZN5clang11ASTConsumer21HandleInterestingDeclENS_12DeclGroupRefE
Searching for the symbol in the clang/LLVM libraries indicates the
symbol resides in libclangAST.a:
./libclangAST.a
0000000000000000 T
_ZN5clang11ASTConsumer21HandleInterestingDeclENS_12DeclGroupRefE
I'm already linking libclangAST.a into my project so I'm wondering what
I'm missing or what the problem could be otherwise:
LLVMLIBS = libLLVMProfileData.a libLLVMCppBackendCodeGen.a
libLLVMX86CodeGen.a libLLVMX86AsmParser.a libLLVMX86Disassembler.a
libLLVMBitWriter.a libLLVMIRReader.a libLLVMInstrumentation.a
libLLVMipo.a libLLVMLinker.a libLLVMCppBackendInfo.a libLLVMX86Desc.a
libLLVMXCoreDesc.a libLLVMAsmParser.a libLLVMBitReader.a
libLLVMVectorize.a libLLVMAsmPrinter.a libLLVMSelectionDAG.a
libLLVMMipsAsmPrinter.a libLLVMMipsInfo.a libLLVMX86AsmPrinter.a
libLLVMX86Info.a libLLVMMCParser.a libLLVMCodeGen.a libLLVMX86Utils.a
libLLVMObjCARCOpts.a libLLVMScalarOpts.a libLLVMInstCombine.a
libLLVMTransformUtils.a libLLVMipa.a libLLVMAnalysis.a libLLVMTarget.a
libLLVMCore.a libLLVMMC.a libLLVMObject.a libLLVMSupport.a
libclangFrontendTool.a libclangAST.a libclangAnalysis.a libclangBasic.a
libclangCodeGen.a libclangDriver.a libclangEdit.a libclangFrontend.a
libclangLex.a libclangParse.a libclangSema.a libclangSerialization.a
libclangStaticAnalyzerFrontend.a libclangStaticAnalyzerCheckers.a
libclangStaticAnalyzerCore.a libclangARCMigrate.a libclangRewriteCore.a
libclangRewriteFrontend.a libLLVMOption.a
Thanks a lot
More information about the cfe-dev
mailing list