Win7 sp1下免费安装 Visual C++ 2015编译器及解决运行期缺少ucrtbased.dll

本文指导在Win7 SP1系统中如何免费安装Visual C++ Build Tools 2015,并解决运行时缺少ucrtbased.dll的问题。安装步骤包括:首先安装.NET Framework 4.5.1,然后安装Microsoft Visual C++ Build Tools 2015 Update 3,最后安装Microsoft Visual C++ 2015 Redistributable。使用/MDd选项编译的源文件需要依赖MSVCP140D.dll、VCRUNTIME140D.dll和ucrtbased.dll。为确保程序正常运行,需将对应版本的ucrtbased.dll拷贝到程序目录下。
摘要由CSDN通过智能技术生成
下载地址:https://www.visualstudio.com/downloads/

1,安装.NET Framework 4.5.1
2,安装Microsoft Visual C++ Build Tools 2015
当前最新版本:Microsoft Visual C++ Build Tools 2015 Update 3
3,安装Microsoft Visual C++ 2015 Redistributable

编译使用注意:cl.exe /EHsc /D _DEBUG /MDd xx.cpp
使用/MDd选项编译源文件后,运行时需要 MSVCP140D.dll,VCRUNTIME140D.dll,ucrtbased.dll这三个DLL文件。
须将对应版本(x86,x64,arm)的ucrtbased.dll需要拷贝到目标文件(exe)的目录下才可以成功运行程序。
参看:

> Updated September 11, 2015:  App-local deployment of the Universal CRT
> is supported.  To obtain the binaries for app-local deployment,
> install the Windows Software Development Kit (SDK) for Windows 10.
> The binaries will be installed to C:\Program Files (x86)\Windows
> Kits\10\Redist\ucrt.  You will need to copy all of the DLLs with your
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值