<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Make sure the Release version is compiled with "Disable Language Extensions" (/Za). This option is under clangParse/Properties/Configuration Properties/C/C++/Language.<div><br></div><div>The parser won't compile without enabling this switch.<div><br></div><div>HTH,</div><div><br></div><div>snaroff</div><div><br><div><div>On Mar 5, 2009, at 1:31 PM, Viktar Zviarovich wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="EN-GB" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">Hi all,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">One more detail: I used CMake in combination with nmake.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">Best regards,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">Victor<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">The errors:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@PAVScope@2@V32@VSourceLocation@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAV52@2@Z)<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@PAVScope@2@V32@VSourceLocation@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@PAV52@2@Z)<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B7AE@2@VSourceLocation@2@0V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B7AE@2@_N@Z)<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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@Sema@clang@@UAE?AV?$ASTOwningResult@$1??_9ActionBase@clang@@$B7AE@2@VSourceLocation@2@_N1IIPAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$B3AE@2@3V?$ASTOwningResult@$1??_9ActionBase@clang@@$B3AE@2@30@Z)<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="Courier New"><span style="font-size: 8pt; font-family: 'Courier New'; ">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@ABVCXXScopeSpec@2@PAVIdentifierInfo@2@2PAVAttributeList@2@V?$ASTMultiPtr@$1??_9ActionBase@clang@@$BM@AE@2@@Z)<o:p></o:p></span></font></div></div>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" style="color: blue; text-decoration: underline; ">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" style="color: blue; text-decoration: underline; ">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div></span></blockquote></div><br></div></div></body></html>