MSVCP140.dll缺失 [英] MSVCP140.dll missing

查看:229
本文介绍了MSVCP140.dll缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开发了我的第一个程序在C + +,我想与我的一个朋友。可悲的是,当他试图打开exe它得到一个错误,说MSVCP140.dll丢失。

解决方案

让你的朋友下载运行时DLL(@Kay在配置属性 - > C / C ++ - >配置属性 - >属性 - >配置属性 - >属性 - >配置属性 - > C / >代码生成。在运行时库上选择/ MTd用于调试模式和/ MT用于发布模式。



这将导致编译器将运行时应用到应用程序中。可执行文件将会分区地更大,但它将运行而不需要运行时dll。


I just developed my first program in C++ and I wanted to show it with one of my friends. Sadly, when he tries to open the exe it gets an error which says "MSVCP140.dll is missing". Why is this issue happening and how can he/I fix it?

解决方案

Either make your friends download the runtime DLL (@Kay answer), or compile the app with static linking.

on visual studio go to Project tab -> properties - > configuration properties -> C/C++ -> Code Generation. on runtime library choose /MTd for debug mode and /MT for release mode.

this will cause the compiler to imbue the runtime into the app. the executable will be segnifically bigger, but it will run without any need of runtime dlls.

这篇关于MSVCP140.dll缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆