[cfe-dev] linkage errors for VS2005 Release build

Viktar Zviarovich Viktar.Zviarovich at brunel.ac.uk
Thu Mar 5 10:31:23 PST 2009


Hi all,

 

I've tried to build Release version of clang obtained from the head of
SVN using Visual C++ 2005 and got the linkage errors listed at the end
of this letter. Has anyone tried to do the same and found some
solution/workaround for this? Interestingly enough the Debug version is
building without any errors.

 

One more detail: I used CMake in combination with nmake.

 

Best regards,

Victor

 

The errors:

 

39>clangSema.lib(ParseAST.obj) : error LNK2001: unresolved external
symbol "public: virtual class clang::ASTOwningResult<&[thunk]:
__thiscall clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::ActOnCallExpr(class clang::Scope *,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation
*,class clang::SourceLocation)"
(?ActOnCallExpr at Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase at cla
ng@@$B3AE at 2@PAVScope at 2@V32 at VSourceLocation@2 at V?$ASTMultiPtr@$1??_9Action
Base at clang@@$B3AE at 2@PAV52 at 2@Z)

39>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'> __thiscall
clang::Sema::ActOnCallExpr(class clang::Scope *,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation
*,class clang::SourceLocation)"
(?ActOnCallExpr at Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase at cla
ng@@$B3AE at 2@PAVScope at 2@V32 at VSourceLocation@2 at V?$ASTMultiPtr@$1??_9Action
Base at clang@@$B3AE at 2@PAV52 at 2@Z)

39>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
clang::Sema::ActOnCompoundStmt(class clang::SourceLocation,class
clang::SourceLocation,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'>,bool)"
(?ActOnCompoundStmt at Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase
@clang@@$B7AE at 2@VSourceLocation at 2@0V?$ASTMultiPtr@$1??_9ActionBase at clang
@@$B7AE at 2@_N at Z)

39>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual class clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{8,{flat}}' }'> __thiscall
clang::Sema::ActOnAsmStmt(class clang::SourceLocation,bool,bool,unsigned
int,unsigned int,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTOwningResult<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class
clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{4,{flat}}' }'>,class clang::SourceLocation)"
(?ActOnAsmStmt at Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase at clan
g@@$B7AE at 2@VSourceLocation at 2@_N1IIPAV?$basic_string at DU?$char_traits at D@st
d@@V?$allocator at D@2@@std@@V?$ASTMultiPtr@$1??_9ActionBase at clang@@$B3AE at 2
@3V?$ASTOwningResult@$1??_9ActionBase at clang@@$B3AE at 2@30 at Z)

39>clangSema.lib(Sema.obj) : error LNK2001: unresolved external symbol
"public: virtual void * __thiscall clang::Sema::ActOnClassTemplate(class
clang::Scope *,unsigned int,enum clang::Action::TagKind,class
clang::SourceLocation,class clang::CXXScopeSpec const &,class
clang::IdentifierInfo *,class clang::SourceLocation,class
clang::AttributeList *,class clang::ASTMultiPtr<&[thunk]: __thiscall
clang::ActionBase::`vcall'{12,{flat}}' }'>)"
(?ActOnClassTemplate at Sema@clang@@UAEPAXPAVScope at 2@IW4TagKind at Action@2 at VS
ourceLocation at 2@ABVCXXScopeSpec at 2@PAVIdentifierInfo at 2@2PAVAttributeList@
2 at V?$ASTMultiPtr@$1??_9ActionBase at clang@@$BM at AE@2@@Z)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090305/18da768e/attachment.html>


More information about the cfe-dev mailing list