[cfe-dev] linkage errors for VS2005 Release build

steve naroff snaroff at apple.com
Thu Mar 5 10:56:58 PST 2009


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 clang@@$B3AE at 2@PAVScope at 2@V32 at VSourceLocation@2 at V? 
> $ASTMultiPtr@$1??_9ActionBase 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 clang@@$B3AE at 2@PAVScope at 2@V32 at VSourceLocation@2 at V? 
> $ASTMultiPtr@$1??_9ActionBase 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 at 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 clang@@$B7AE at 2@VSourceLocation at 2@_N1IIPAV? 
> $basic_string at DU?$char_traits at D@std@@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 
> @Sema 
> @clang 
> @@UAEPAXPAVScope 
> @2 
> @IW4TagKind 
> @Action 
> @2 
> @VSourceLocation 
> @2 at ABVCXXScopeSpec@2 at PAVIdentifierInfo@2 at 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/07cd73cd/attachment.html>


More information about the cfe-dev mailing list