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

下载地址: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
> app (note that the set of DLLs are necessary is different on different
> versions of Windows, so you must include all of the DLLs in order for
> your program to run on all supported versions of Windows).

原文链接:https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/

你可能感兴趣的:(工具安装)