<div dir="ltr">Hi,<br><br>I've posted a similar question a few days ago, but didn't get a satisfying reply (Thanks Jan). Maybe this time...<br>I'm trying to build a simple program which uses clang libs on linux with g++.<br>

After failing at the linking phase using the llvm-config --ldflags --libs script, I've tried to copy-paste the output of the script directly into the g++ command, but unfortunately I still get an enormous amount of "undefined refernce to..." error messages. <br>

What am I doing wrong? Please see the build output below:<br><br><br>g++ -I/home/mirskyil/src/llvm-svn/tools/clang/include/ -I/home/mirskyil/src/llvm-svn/include/ -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -L/home/mirskyil/src/llvm-svn/Debug+Asserts/lib/ -lpthread -ldl -lm -lLLVMpic16passes -lLLVMMCDisassembler -lLLVMXCoreAsmPrinter -lLLVMXCoreCodeGen -lLLVMXCoreInfo -lLLVMSystemZAsmPrinter -lLLVMSystemZCodeGen -lLLVMSystemZInfo -lLLVMSparcAsmPrinter -lLLVMSparcCodeGen -lLLVMSparcInfo -lLLVMPowerPCAsmPrinter -lLLVMPowerPCCodeGen -lLLVMPowerPCInfo -lLLVMPIC16AsmPrinter -lLLVMPIC16CodeGen -lLLVMPIC16Info -lLLVMMipsAsmPrinter -lLLVMMipsCodeGen -lLLVMMipsInfo -lLLVMMSP430AsmPrinter -lLLVMMSP430CodeGen -lLLVMMSP430Info -lLLVMMBlazeAsmPrinter -lLLVMMBlazeCodeGen -lLLVMMBlazeInfo -lLLVMLinker -lLLVMipo -lLLVMInterpreter -lLLVMInstrumentation -lLLVMJIT -lLLVMExecutionEngine -lLLVMCppBackend -lLLVMCppBackendInfo -lLLVMCellSPUAsmPrinter -lLLVMCellSPUCodeGen -lLLVMCellSPUInfo -lLLVMCBackend -lLLVMCBackendInfo -lLLVMBlackfinAsmPrinter -lLLVMBlackfinCodeGen -lLLVMBlackfinInfo -lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMX86AsmPrinter -lLLVMX86Info -lLLVMAsmParser -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen -lLLVMARMAsmPrinter -lLLVMARMInfo -lLLVMArchive -lLLVMBitReader -lLLVMAlphaAsmPrinter -lLLVMAsmPrinter -lLLVMMCParser -lLLVMAlphaCodeGen -lLLVMSelectionDAG -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMAlphaInfo -lLLVMSupport -lLLVMSystem -lclang -lclangAnalysis -lclangAST -lclangBasic -lclangChecker -lclangCodeGen -lclangDriver -lclangFrontend -lclangFrontendTool -lclangIndex -lclangLex -lclangParse -lclangRewrite -lclangSema -lclangSerialization CodeObfuscator.o  PreProcess.o  SrcHandler.o -o CodeObfuscator<br>

SrcHandler.o: In function `SrcHandler':<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:46: undefined reference to `clang::Diagnostic::Diagnostic(clang::DiagnosticClient*)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:48: undefined reference to `clang::FileManager::FileManager()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:49: undefined reference to `clang::HeaderSearch::HeaderSearch(clang::FileManager&)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:58: undefined reference to `clang::TargetInfo::CreateTargetInfo(clang::Diagnostic&, clang::TargetOptions&)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:61: undefined reference to `clang::Preprocessor::Preprocessor(clang::Diagnostic&, clang::LangOptions const&, clang::TargetInfo const&, clang::SourceManager&, clang::HeaderSearch&, clang::IdentifierInfoLookup*, bool)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:64: undefined reference to `llvm::raw_fd_ostream::raw_fd_ostream(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:67: undefined reference to `clang::IdentifierTable::IdentifierTable(clang::LangOptions const&, clang::IdentifierInfoLookup*)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:68: undefined reference to `clang::SelectorTable::SelectorTable()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:69: undefined reference to `clang::Builtin::Context::Context(clang::TargetInfo const&)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:70: undefined reference to `clang::ASTContext::ASTContext(clang::LangOptions const&, clang::SourceManager&, clang::TargetInfo const&, clang::IdentifierTable&, clang::SelectorTable&, clang::Builtin::Context&, unsigned int)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::ASTContext::~ASTContext()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::SelectorTable::~SelectorTable()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `llvm::raw_fd_ostream::~raw_fd_ostream()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::HeaderSearch::~HeaderSearch()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::FileManager::~FileManager()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::SourceManager::~SourceManager()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::Diagnostic::~Diagnostic()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:46: undefined reference to `clang::Diagnostic::Diagnostic(clang::DiagnosticClient*)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:48: undefined reference to `clang::FileManager::FileManager()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:49: undefined reference to `clang::HeaderSearch::HeaderSearch(clang::FileManager&)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:58: undefined reference to `clang::TargetInfo::CreateTargetInfo(clang::Diagnostic&, clang::TargetOptions&)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:61: undefined reference to `clang::Preprocessor::Preprocessor(clang::Diagnostic&, clang::LangOptions const&, clang::TargetInfo const&, clang::SourceManager&, clang::HeaderSearch&, clang::IdentifierInfoLookup*, bool)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:64: undefined reference to `llvm::raw_fd_ostream::raw_fd_ostream(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:67: undefined reference to `clang::IdentifierTable::IdentifierTable(clang::LangOptions const&, clang::IdentifierInfoLookup*)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:68: undefined reference to `clang::SelectorTable::SelectorTable()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:69: undefined reference to `clang::Builtin::Context::Context(clang::TargetInfo const&)'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:70: undefined reference to `clang::ASTContext::ASTContext(clang::LangOptions const&, clang::SourceManager&, clang::TargetInfo const&, clang::IdentifierTable&, clang::SelectorTable&, clang::Builtin::Context&, unsigned int)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::ParseAST(clang::Preprocessor&, clang::ASTConsumer*, clang::ASTContext&, bool, bool, clang::CodeCompleteConsumer*)'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::ASTContext::~ASTContext()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::SelectorTable::~SelectorTable()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `llvm::raw_fd_ostream::~raw_fd_ostream()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::HeaderSearch::~HeaderSearch()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::FileManager::~FileManager()'<br>/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::SourceManager::~SourceManager()'<br>

/home/mirskyil/workspace/CodeObfuscator/src/SrcHandler.cpp:72: undefined reference to `clang::Diagnostic::~Diagnostic()'<br>SrcHandler.o: In function `~DiagnosticBuilder':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/Diagnostic.h:701: undefined reference to `clang::DiagnosticBuilder::Emit()'<br>

SrcHandler.o: In function `clang::RecordType::classof(clang::Type const*)':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/Type.h:2351: undefined reference to `clang::RecordType::classof(clang::TagType const*)'<br>

SrcHandler.o: In function `clang::EnumType::classof(clang::Type const*)':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/Type.h:2373: undefined reference to `clang::EnumType::classof(clang::TagType const*)'<br>

SrcHandler.o: In function `clang::NamedDecl::getNameAsString() const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/Decl.h:131: undefined reference to `clang::DeclarationName::getAsString() const'<br>

SrcHandler.o: In function `clang::FunctionDecl::getParamDecl(unsigned int)':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/Decl.h:1333: undefined reference to `clang::FunctionDecl::getNumParams() const'<br>

SrcHandler.o: In function `llvm::raw_ostream::flush()':<br>/home/mirskyil/src/llvm-svn/include/llvm/Support/raw_ostream.h:130: undefined reference to `llvm::raw_ostream::flush_nonempty()'<br>SrcHandler.o: In function `llvm::raw_ostream::operator<<(llvm::StringRef)':<br>

/home/mirskyil/src/llvm-svn/include/llvm/Support/raw_ostream.h:160: undefined reference to `llvm::raw_ostream::write(char const*, unsigned int)'<br>SrcHandler.o: In function `llvm::raw_ostream::operator<<(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':<br>

/home/mirskyil/src/llvm-svn/include/llvm/Support/raw_ostream.h:176: undefined reference to `llvm::raw_ostream::write(char const*, unsigned int)'<br>SrcHandler.o: In function `clang::TypeLoc::getSourceRange() const':<br>

/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/TypeLoc.h:96: undefined reference to `clang::TypeLoc::getEndLoc() const'<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/TypeLoc.h:96: undefined reference to `clang::TypeLoc::getBeginLoc() const'<br>

SrcHandler.o: In function `clang::TypeLoc::getNextTypeLoc() const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/TypeLoc.h:112: undefined reference to `clang::TypeLoc::getNextTypeLocImpl(clang::TypeLoc)'<br>

SrcHandler.o: In function `ASTConsumer':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/ASTConsumer.h:38: undefined reference to `vtable for clang::ASTConsumer'<br>SrcHandler.o: In function `~ASTConsumer':<br>

/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/ASTConsumer.h:40: undefined reference to `vtable for clang::ASTConsumer'<br>SrcHandler.o: In function `SourceManager':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/SourceManager.h:432: undefined reference to `llvm::BumpPtrAllocator::DefaultSlabAllocator'<br>

/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/SourceManager.h:432: undefined reference to `llvm::BumpPtrAllocator::BumpPtrAllocator(unsigned int, unsigned int, llvm::SlabAllocator&)'<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/SourceManager.h:433: undefined reference to `clang::SourceManager::clearIDTables()'<br>

SrcHandler.o: In function `clang::SourceManager::getBuffer(clang::FileID, bool*) const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/SourceManager.h:538: undefined reference to `clang::SrcMgr::ContentCache::getBuffer(clang::Diagnostic&, clang::SourceManager const&, clang::SourceLocation, bool*) const'<br>

SrcHandler.o: In function `clang::SourceManager::getFileID(clang::SourceLocation) const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Basic/SourceManager.h:570: undefined reference to `clang::SourceManager::getFileIDSlow(unsigned int) const'<br>

SrcHandler.o: In function `clang::RopePieceBTreeIterator::operator++()':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Rewrite/RewriteRope.h:135: undefined reference to `clang::RopePieceBTreeIterator::MoveToNextPiece()'<br>

SrcHandler.o: In function `clang::RopePieceBTree::begin() const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Rewrite/RewriteRope.h:158: undefined reference to `clang::RopePieceBTreeIterator::RopePieceBTreeIterator(void const*)'<br>

SrcHandler.o: In function `~RewriteRope':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Rewrite/RewriteRope.h:195: undefined reference to `clang::RopePieceBTree::~RopePieceBTree()'<br>SrcHandler.o: In function `SrcRewriter::Initialize(clang::ASTContext&)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:118: undefined reference to `clang::Lexer::ComputePreamble(llvm::MemoryBuffer const*, unsigned int)'<br>SrcHandler.o: In function `SrcRewriter::HandleTopLevelSingleDecl(clang::Decl*)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:139: undefined reference to `clang::FunctionDecl::isMain() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:149: undefined reference to `clang::QualType::getAsString() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:148: undefined reference to `clang::FunctionDecl::getNumParams() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:158: undefined reference to `clang::QualType::getAsString() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:159: undefined reference to `clang::Type::isVoidType() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:174: undefined reference to `clang::Type::isVoidType() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:174: undefined reference to `clang::QualType::getAsString() const'<br>SrcHandler.o: In function `SrcRewriter::NormalizeFuncDecl(clang::FunctionDecl*)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:222: undefined reference to `clang::Rewriter::getRangeSize(clang::SourceRange) const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:222: undefined reference to `clang::TypeLoc::getBeginLoc() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:240: undefined reference to `clang::FunctionDecl::getNumParams() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:247: undefined reference to `clang::QualType::getAsString() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:246: undefined reference to `clang::FunctionDecl::getNumParams() const'<br>SrcHandler.o: In function `SrcRewriter::HandleTranslationUnit(clang::ASTContext&)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:298: undefined reference to `clang::DeclContext::decls_begin() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:299: undefined reference to `clang::DeclContext::decls_end() const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:321: undefined reference to `llvm::outs()'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:324: undefined reference to `llvm::errs()'<br>SrcHandler.o: In function `SrcRewriter::InsertText(clang::SourceLocation, llvm::StringRef, bool)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:378: undefined reference to `clang::Rewriter::InsertText(clang::SourceLocation, llvm::StringRef, bool)'<br>SrcHandler.o: In function `SrcRewriter::RemoveText(clang::SourceLocation, unsigned int)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:390: undefined reference to `clang::Rewriter::RemoveText(clang::SourceLocation, unsigned int)'<br>SrcHandler.o: In function `SrcRewriter::ReplaceText(clang::SourceLocation, unsigned int, llvm::StringRef)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:398: undefined reference to `clang::Rewriter::ReplaceText(clang::SourceLocation, unsigned int, llvm::StringRef)'<br>SrcHandler.o: In function `SrcRewriter::VisitDeclContext(clang::DeclContext*)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:466: undefined reference to `clang::DeclContext::decls_begin() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:466: undefined reference to `clang::DeclContext::decls_end() const'<br>

SrcHandler.o: In function `SrcRewriter::VisitStmt(clang::Stmt*)':<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:486: undefined reference to `clang::CallExpr::getDirectCallee()'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:490: undefined reference to `clang::CallExpr::getDirectCallee()'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:496: undefined reference to `clang::Type::isVoidType() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:499: undefined reference to `clang::Rewriter::getRangeSize(clang::SourceRange) const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:503: undefined reference to `clang::QualType::getAsString() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:505: undefined reference to `clang::Rewriter::getRangeSize(clang::SourceRange) const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:513: undefined reference to `clang::QualType::getAsString() const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:516: undefined reference to `clang::Rewriter::getRangeSize(clang::SourceRange) const'<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:516: undefined reference to `clang::SourceManager::getCharacterData(clang::SourceLocation, bool*) const'<br>SrcHandler.o: In function `SrcRewriter::getCodeString(clang::SourceRange)':<br>

/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:538: undefined reference to `clang::SourceManager::getCharacterData(clang::SourceLocation, bool*) const'<br>/home/mirskyil/workspace/CodeObfuscator/h/SrcRewriter.hpp:538: undefined reference to `clang::Rewriter::getRangeSize(clang::SourceRange) const'<br>

SrcHandler.o: In function `clang::FunctionType const* clang::Type::getAs<clang::FunctionType>() const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/Type.h:3657: undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'<br>

SrcHandler.o: In function `clang::StmtIteratorImpl<clang::StmtIterator, clang::Stmt*&>::operator*() const':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/StmtIterator.h:119: undefined reference to `clang::StmtIteratorBase::GetDeclExpr() const'<br>

SrcHandler.o: In function `clang::StmtIteratorImpl<clang::StmtIterator, clang::Stmt*&>::operator++()':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/StmtIterator.h:93: undefined reference to `clang::StmtIteratorBase::NextVA()'<br>

/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/StmtIterator.h:94: undefined reference to `clang::StmtIteratorBase::NextDecl(bool)'<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/StmtIterator.h:97: undefined reference to `clang::StmtIteratorBase::NextVA()'<br>

SrcHandler.o: In function `.L1206':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/TypeLocVisitor.h:36: undefined reference to `llvm::llvm_unreachable_internal(char const*, char const*, unsigned int)'<br>

SrcHandler.o: In function `~StringMap':<br>/home/mirskyil/src/llvm-svn/include/llvm/ADT/StringMap.h:425: undefined reference to `llvm::BumpPtrAllocator::~BumpPtrAllocator()'<br>SrcHandler.o: In function `llvm::cast_convert_val<clang::DeclContext, clang::Decl*, clang::Decl*>::doit(clang::Decl const*)':<br>

/home/mirskyil/src/llvm-svn/tools/clang/include/clang/AST/DeclBase.h:1280: undefined reference to `clang::Decl::castToDeclContext(clang::Decl const*)'<br>SrcHandler.o: In function `~RewriteBuffer':<br>/home/mirskyil/src/llvm-svn/tools/clang/include/clang/Rewrite/Rewriter.h:41: undefined reference to `clang::DeltaTree::~DeltaTree()'<br>

SrcHandler.o: In function `llvm::isa_impl<clang::DeclContext, clang::Decl>::doit(clang::Decl const&)':<br>/home/mirskyil/src/llvm-svn/include/llvm/Support/Casting.h:55: undefined reference to `clang::DeclContext::classof(clang::Decl const*)'<br>

SrcHandler.o:(.data.rel.ro._ZTV11SrcRewriter[vtable for SrcRewriter]+0x18): undefined reference to `clang::ASTConsumer::HandleInterestingDecl(clang::DeclGroupRef)'<br>collect2: ld returned 1 exit status<br>make: *** [all] Error 1<br>

<br><br><br>-- <br><div dir="ltr">Best Regards,<br>Ilya Mirsky<br><a href="http://www.cs.bgu.ac.il/%7Emirskyil" target="_blank">www.cs.bgu.ac.il/~mirskyil</a><br></div><br>
</div>