Windows下使用LLVM

本文介绍了在Windows 7 64位系统下,使用VS2010和LLVM-7.0.0进行C++编程的步骤。首先面临链接错误的问题,通过参考博客解决了该问题,然后根据LLVM官网的说明进行了相关设置。然而,最终选择在Linux环境下远程调试Windows程序,避免了Windows上的移植工作。
摘要由CSDN通过智能技术生成
  • 何为使用
    希望能够编译#include<llvm/...>此类C++代码
  • 原料
    • Windows 7 64bit
    • VS2010
    • LLVM-7.0.0-r325576-win32
  • VS2010配置
    • 安装完成后编写hello world测试,出现链接错误:LINK:fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏,参考http://blog.csdn.net/kevin_mqj/article/details/22981873解决该问题。
    • 根据LLVM网站的说明http://llvm.org/builds/We provide a periodically updated installer for Windows. The current installer integrates with MSVC 2010, 2012, 2013 and 2015. To use the LLVM toolchain from Visual Studio, select a project in Solution Explorer, open its Property Page (Alt+F7 by default), and in the "General" section of "Configuration Properties" change "Platform Toolset" to "LLVM-vs2012", "LLVM-vs2013", etc.进行设置。 <
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值