使用 C++ 构建解决方案后,VCRUNTIME140_1.dll 丢失

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/58828982/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 16:07:55  来源:igfitidea点击:

VCRUNTIME140_1.dll missing after building solution with c++

c++dll

提问by Tsubaki13

h c++

c++

I've created a small text adventure. I've built the solution with Visual Studio Community 2019 using Release and x64 settings. I've zipped up the *.exe file along with the other generated files and sent them to another pc that doesn't have VS installed and the error you see in the image came up. I've searched my pc and the file exists in a couple of different folders, one of them being system32 so i don't know where to place the file on the new pc.

我创建了一个小文本冒险。我已经使用 Release 和 x64 设置通过 Visual Studio Community 2019 构建了解决方案。我已经将 *.exe 文件与其他生成的文件一起压缩,并将它们发送到另一台未安装 VS 的电脑,并且出现了您在图像中看到的错误。我搜索了我的电脑,该文件存在于几个不同的文件夹中,其中一个是 system32,所以我不知道将文件放在新电脑上的什么位置。

Any help would be appreciated. Thank you

任何帮助,将不胜感激。谢谢

回答by ms609

Per @user4581301's comment, the answer is to download a current Microsoft Visual C++ redistributable for the appropriate architecture (i.e. x64).

根据@user4581301 的评论,答案是为适当的体系结构(即 x64)下载当前的 Microsoft Visual C++ 可再发行组件。

As I already had a 2019 of the redestributable installed, I had to install the corresponding 2015-2019 x64 distributable.

由于我已经安装了 2019 年的可再发行版,因此我必须安装相应的2015-2019 x64 发行版

回答by Bridget Naylor

I was getting the same error and installed VCRUNTIME140_1.dllfile and put it in the MySQL Shell 8.0 bin file.

我收到相同的错误并安装了VCRUNTIME140_1.dll文件并将其放入 MySQL Shell 8.0 bin 文件中。

Problem solved.

问题解决了。