您的位置:首页 > 产品设计 > UI/UE

The 2 ways of building for Windows

2014-03-18 00:00 525 查看
Q:

>From what I've read, you can build/use LLVM+clang via Visual Studio or via MinGW.  So far, I've only managed
to have my code working via MinGW.

However, most of my users compile using Visual Studio.  Can LLVM that was compiled using MinGW (or using the
pre-built MinGW binary) be linked against using Visual Studio (or, more specifically, using Visual
Studio's "cl" compiler and "link" linker)?

In my first attempt, I get an error message like:

libLLVMX86CodeGen.a(X86TargetMachine.o) : fatal error LNK1143: invalid or corrupt file: no symbol for
COMDAT section 0x6E

________________________________________________________________________________

A:

No. MinGW's g++ and Visual Studio's cl use different C++ ABIs.


转自:http://comments.gmane.org/gmane.comp.compilers.llvm.devel/50191
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐