<div dir="ltr">Clang is capable of laying out complex data types in an MS-ABI compatible way.<div><br></div><div>-Warren</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 9:51 PM, 湖西Zero <span dir="ltr"><<a href="mailto:lifangmu@foxmail.com" target="_blank">lifangmu@foxmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>clang --driver-mode=cl -D_HAS_EXCEPTIONS=0 /GR- file.cpp </div>
<div>clang-cl -D_HAS_EXCEPTIONS=0 /GR- file.cpp can use Microsoft STL(file.exe);</div>
<div>If your compiled not link add "/c" you can use MS link.exe </div>
<div>link file.obj libcmt.lib ... /Out:file.exe</div><div> </div><div><u></u><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style="font-size:14px;font-family:Verdana"><a href="http://wpa.qq.com/msgrd?v=3&uin=1053112601&site=qq&menu=yes" target="_blank"><img border="0" title="点击这里给我发消息"></a></div>
<u></u></div><div> </div><div><br></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0">------------------ Original ------------------</div><div style="font-size:12px;background:#efefef;padding:8px">
<div><b>From:</b> "Steve Frankwilde"<u></u>; </div><div><b>Date:</b> 2013年10月12日(星期六) 上午10:41</div><div><b>To:</b> "Clang"<u></u>; </div><div><b>Subject:</b> [cfe-dev]  Clang and Visual Studio/Microsoft STL compatibility</div>
</div><div><div class="h5"><div><br></div>Hello,<br><br>I have a couple of quick questions about Clang's current level of C++ <br>compatibility with Visual Studio.<br><br>-When targeting VS, is Clang able to be used to generate MS ABI <br>
compatible code for any version of Visual Studio and in particular VS10 <br>or 11? Can you pass complex (non POD) data types between VS and Clang <br>compiled code without resorting to COM methods like abstract interfaces?<br>
<br>-From what I've read Clang is currently unable to compile the VS<span style="BORDER-BOTTOM:#ccc 1px dashed">10/11</span> <br>STL due to Microsoft extensions, (roughly) how much work would be <br>involved in getting Clang to fully build the MS STL?<br>
<br>Thanks very much.<br>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.u<u></u>iuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists<u></u>.cs.uiuc.edu<u></u>/mailman/lis<u></u>tinfo/cfe-de<u></u>v</a><br>
</div></div>.<br><br>_______________________________________________<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" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>