[英]Package C console application (Visual Studio '13)
I wrote a basic program for my mom, and now I want her to be able to use it. 我为妈妈写了一个基本程序,现在我希望她能够使用它。 Obviously, it works on my computer.
显然,它可以在我的计算机上使用。 Getting the
.exe
file from the project folder, and putting it on her computer doesn't work: it says MSVCR120d.dll is missing
whenever the .exe
is run. 从项目文件夹中获取
.exe
文件并将其放在她的计算机上是行不通的:它说,每当.exe
运行时, MSVCR120d.dll is missing
。 Makes sense--as her computer doesn't have Visual Studio on it. 很有道理-因为她的计算机上没有Visual Studio。 However, I tried installing the Visual C++ Redistributable Packages for Visual Studio 2013 , and that didn't work either.
但是,我尝试安装适用于Visual Studio 2013的Visual C ++可再发行组件包 ,但该方法也不起作用。
To be honest, I'm not looking to spending hours of time to piece this all together. 老实说,我不是希望花费数小时的时间来将它们拼凑在一起。 This is something I will more than likely never do again--I've already done some searching and can only find subjects speaking of C++ distributions.
这是我很可能不会再做的事情-我已经进行了一些搜索,并且只能找到涉及C ++发行版的主题。 I want a way to get the console app on her computer to work.
我想要一种使她的计算机上的控制台应用程序正常工作的方法。
The more easy way is link statically . 更简单的方法是静态链接 。 That mean embed all the needed code to the app to run, in the final binary (.exe), eliminating dependency of other libraries.
这意味着将所有需要的代码嵌入到应用程序中,以最终的二进制文件(.exe)运行,从而消除了对其他库的依赖。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.