[cfe-dev] c-index-test linking failure

Zhongxing Xu xuzhongxing at gmail.com
Sun Nov 8 03:25:59 PST 2009


It's okay now.

2009/11/7 Zhongxing Xu <xuzhongxing at gmail.com>:
> On Linux I see this:
>
> llvm[2]: Linking Debug executable c-index-test
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::CFG::buildCFG(clang::Stmt*, clang::ASTContext*)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::UnqualifiedId::clear()'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclSpec::SetStorageClassSpec(clang::DeclSpec::SCS,
> clang::SourceLocation, char const*&, unsigned int&)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::Action::~Action()'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclaratorChunk::getFunction(bool, bool,
> clang::SourceLocation, clang::DeclaratorChunk::ParamInfo*, unsigned
> int, unsigned int, bool, clang::SourceLocation, bool, void**,
> clang::SourceRange*, unsigned int, clang::SourceLocation,
> clang::SourceLocation, clang::Declarator&)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::CFG::~CFG()'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::AttributeList::~AttributeList()'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::UnqualifiedId::setOperatorFunctionId(clang::SourceLocation,
> clang::OverloadedOperatorKind, clang::SourceLocation*)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to `vtable
> for clang::Action'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::AttributeList::getKind(clang::IdentifierInfo const*)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to `vtable
> for clang::ActionBase'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclSpec::SetTypeSpecType(clang::DeclSpec::TST,
> clang::SourceLocation, char const*&, unsigned int&, void*, bool)'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclSpec::getParsedSpecifiers() const'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to `vtable
> for clang::PrettyStackTraceActionsDecl'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclSpec::isMissingDeclaratorOk()'
> /home/xzx/llvm/Debug/lib/libCIndex.so: undefined reference to
> `clang::DeclSpec::getSpecifierName(clang::DeclSpec::TST)'
> collect2: ld returned 1 exit status
> make[2]: *** [/home/xzx/llvm/Debug/bin/c-index-test] 错误 1
> make[2]:正在离开目录 `/home/xzx/llvm/tools/clang/tools/c-index-test'
> make[1]: *** [all] 错误 1
> make[1]:正在离开目录 `/home/xzx/llvm/tools/clang/tools'
> make: *** [all] 错误 1
>




More information about the cfe-dev mailing list