<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><sign signid="0"><div style="color:#909090;font-family:Arial Narrow;font-size:12px">------------------</div><div style='font-size:14px;font-family:Verdana;color:#000;'><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1053112601&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:1053112601:50" title="点击这里给我发消息" /></a></div></sign></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"<mexicocanwait@hotmail.com>; </div><div><b>Date:</b> 2013年10月12日(星期六) 上午10:41</div><div><b>To:</b> "Clang"<cfe-dev@cs.uiuc.edu>; </div><div><b>Subject:</b> [cfe-dev] Clang and Visual Studio/Microsoft STL compatibility</div></div><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" t="5" times="">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<WBR>iuc.edu</A><BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target=_blank>http://lists<WBR>.cs.uiuc.edu<WBR>/mailman/lis<WBR>tinfo/cfe-de<WBR>v</A><BR>.<BR>