<div>I'm developing off of tags/RELEASE_29/final. During the linking phase of compiling my program, I get an error that a function inside of one of clang's libraries has an undefined reference to another function in one of clang's libraries. I copied the command line invocation of g++ off of a previous email to this list, so I'm hoping it's correct.</div>
<div><br></div><div>Invocation and error:</div><div>$ LLVM=~/workspace/llvm/Debug</div><div>$ g++ `$LLVM/bin/llvm-config --cxxflags --ldflags` instmem.cpp -lclangFrontend -lclangDriver -lclangSerialization -lclangParse -lclangSema -lclangAnalysis -lclangAST -lclangLex -lclangBasic `$LLVM/bin/llvm-config --libs` -o instmem</div>
<div>/home/alexander/workspace/llvm/Debug/lib/libclangSerialization.a(ASTReader.o): In function `clang::PCHValidator::ReadPredefinesBuffer(llvm::SmallVector<clang::PCHPredefinesBlock, 2u> const&, llvm::StringRef, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, clang::FileManager&)':</div>
<div>/home/alexander/workspace/llvm/tools/clang/lib/Serialization/ASTReader.cpp:256: undefined reference to `clang::NormalizeDashIncludePath(llvm::StringRef, clang::FileManager&)'</div><div>collect2: ld returned 1 exit status</div>
<div><br></div><div>Source:</div><div><div>#include <clang/Frontend/CompilerInvocation.h></div><div>#include <clang/Basic/DiagnosticIDs.h></div><div><br></div><div>int main(int argc, char *argv[])</div><div>{</div>
<div>  clang::CompilerInvocation invocation;</div><div>  llvm::IntrusiveRefCntPtr<clang::DiagnosticIDs> DiagID(new clang::DiagnosticIDs());</div><div>  clang::Diagnostic Diags(DiagID);</div><div><br></div><div>  clang::CompilerInvocation::CreateFromArgs(invocation, argv, argv+argc, Diags);</div>
<div><br></div><div>  return 0;</div><div>}</div></div><div><br></div><div>If anyone could tell me where I'm messing up, I'd appreciate it.</div><div><br></div><div>Thanks,</div><div>Alex</div>