且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

系统错误:由于您的计算机缺少MSVCP140D.DLL,因此无法启动该程序.尝试重新安装程序以解决此问题

更新时间:2022-04-23 23:29:41

您正在使用Visual Studio调试运行时,如果要在另一台计算机上进行尝试,则应在发布模式下重新编译代码,并确保适当的Visual Studio运行时.已安装Studio运行时可重新分发.

You are using the debug visual studio runtime, if you want to try it on another computer you should recompile your code in release mode and make sure that the appropriate visual studio runtime redistributable is installed.

如果您确实需要在另一台计算机上运行调试可执行文件,则需要确保复制正确的运行时(根据编译程序的方式为32位或64位),可以在中找到C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Professional \ VC \ Redist \ MSVC \ 14.24.28127 \ debug_nonredist (至少对于Visual Studio 2019,确切的路径将略有不同,具体取决于您的Visual Studio版本,例如Visual Studio 2015使用 C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ redist \ debug_nonredist ).

If you really need to run a debug executable on another machine you need to make sure you copy the correct runtime (32 or 64-bit according to how you've compiled your program), this can be found in C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Redist\MSVC\14.24.28127\debug_nonredist (at least for visual studio 2019, the exact path will be slightly different depending on your visual studio version, e.g. visual studio 2015 uses C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\debug_nonredist).