[cfe-dev] Clang and Visual Studio/Microsoft STL compatibility

Warren Hunt whunt at google.com
Mon Oct 14 12:17:56 PDT 2013


Clang is capable of laying out complex data types in an MS-ABI compatible
way.

-Warren


On Fri, Oct 11, 2013 at 9:51 PM, 湖西Zero <lifangmu at foxmail.com> wrote:

> clang --driver-mode=cl -D_HAS_EXCEPTIONS=0 /GR- file.cpp
> clang-cl -D_HAS_EXCEPTIONS=0 /GR- file.cpp can use Microsoft STL(file.exe);
> If your compiled not link add "/c" you can use MS link.exe
> link file.obj libcmt.lib ... /Out:file.exe
>
> **
> ------------------
> <http://wpa.qq.com/msgrd?v=3&uin=1053112601&site=qq&menu=yes>
> **
>
>
>
> ------------------ Original ------------------
> *From:* "Steve Frankwilde"**;
> *Date:* 2013年10月12日(星期六) 上午10:41
> *To:* "Clang"**;
> *Subject:* [cfe-dev] Clang and Visual Studio/Microsoft STL compatibility
>
> Hello,
>
> I have a couple of quick questions about Clang's current level of C++
> compatibility with Visual Studio.
>
> -When targeting VS, is Clang able to be used to generate MS ABI
> compatible code for any version of Visual Studio and in particular VS10
> or 11? Can you pass complex (non POD) data types between VS and Clang
> compiled code without resorting to COM methods like abstract interfaces?
>
> -From what I've read Clang is currently unable to compile the VS10/11
> STL due to Microsoft extensions, (roughly) how much work would be
> involved in getting Clang to fully build the MS STL?
>
> Thanks very much.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.u**iuc.edu <cfe-dev at cs.uiuc.edu>
> http://lists**.cs.uiuc.edu**/mailman/lis**tinfo/cfe-de**v<http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>
> .
>
> _______________________________________________
> 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/20131014/cb2bfa1f/attachment.html>


More information about the cfe-dev mailing list