<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT size=2 face=Arial><SPAN 
class=944231813-01092010>Try removing the "-fno-rtti" 
option.</SPAN></FONT></DIV><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
  <HR tabIndex=-1>
  <FONT size=2 face=Tahoma><B>From:</B> cfe-dev-bounces@cs.uiuc.edu 
  [mailto:cfe-dev-bounces@cs.uiuc.edu] <B>On Behalf Of </B>Ilya 
  Mirsky<BR><B>Sent:</B> 01 September 2010 12:18<BR><B>To:</B> 
  cfe-dev@cs.uiuc.edu<BR><B>Subject:</B> [cfe-dev] Linking 
  errors<BR></FONT><BR></DIV>
  <DIV></DIV>
  <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></BLOCKQUOTE></BODY></HTML>