<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-GB link=blue vlink=blue style='word-wrap: break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Steve,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Actually all the clang libraries are
compiled successfully. The errors occur when it comes to linking clang
executable.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Victor<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
steve naroff [mailto:snaroff@apple.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 05 March 2009 18:57<br>
<b><span style='font-weight:bold'>To:</span></b> Viktar Zviarovich<br>
<b><span style='font-weight:bold'>Cc:</span></b> cfe-dev@cs.uiuc.edu<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [cfe-dev] linkage
errors for VS2005 Release build</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Make sure the Release version is compiled with "Disable Language
Extensions" (/Za). This option is under
clangParse/Properties/Configuration Properties/C/C++/Language.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The parser won't compile without enabling this switch.<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>HTH,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>snaroff<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Mar 5, 2009, at 1:31 PM, Viktar Zviarovich wrote:<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
<o:p></o:p></span></font></p>

<span style='orphans: 2;text-align:auto;widows: 2;-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;word-spacing:0px'>

<div link=blue vlink=purple>

<div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>Hi all,<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'><u1:p> </u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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.<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'><u1:p> </u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>One more detail:
I used CMake in combination with nmake.<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'><u1:p> </u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>Best regards,<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>Victor<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'><u1:p> </u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>The errors:<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'><u1:p> </u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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)<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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)<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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)<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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)<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=1 color=black face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New";color:black'>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)<u1:p></u1:p></span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=1 color=black face=Helvetica><span
style='font-size:9.0pt;font-family:Helvetica;color:black'>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'></span><o:p> </o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>