[cfe-dev] linkage errors for VS2005 Release build
Viktar Zviarovich
Viktar.Zviarovich at brunel.ac.uk
Thu Mar 5 11:11:39 PST 2009
Hi Steve,
Actually all the clang libraries are compiled successfully. The errors
occur when it comes to linking clang executable.
Thanks,
Victor
________________________________
From: steve naroff [mailto:snaroff at apple.com]
Sent: 05 March 2009 18:57
To: Viktar Zviarovich
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] linkage errors for VS2005 Release build
Make sure the Release version is compiled with "Disable Language
Extensions" (/Za). This option is under
clangParse/Properties/Configuration Properties/C/C++/Language.
The parser won't compile without enabling this switch.
HTH,
snaroff
On Mar 5, 2009, at 1:31 PM, Viktar Zviarovich wrote:
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)
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090305/535bf944/attachment.html>
More information about the cfe-dev
mailing list