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

湖西Zero lifangmu at foxmail.com
Fri Oct 11 21:51:14 PDT 2013


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
 
------------------


 




------------------ 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.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/20131012/0db0b845/attachment.html>


More information about the cfe-dev mailing list