分发使用Visual Studio 2013编译的exe文件 [英] Distributing an exe file compiled with Visual Studio 2013
问题描述
我试图使用Visual Studio 2013来编译我的C ++项目并分发给一些朋友。
I am trying to use Visual Studio 2013 to compile my C++ project and distribute it to some friends.
我已经尝试编译它与运行库设置为/ MD并让他们安装 Visual C ++可再发行组件包Visual Studio 2013 < a>,但它仍然给出相同的错误消息程序无法启动,因为MSVCP120.dll从您的计算机丢失。我检查了一个MSVCP120.dll是在他们的System32目录。
I have tried compiling it with Runtime Library set to /MD and having them install "Visual C++ Redistributable Packages for Visual Studio 2013", but it keeps giving the same error message "The program can't start because MSVCP120.dll is missing from your computer". I checked an MSVCP120.dll is in their System32 directory.
我也试图编译它与运行库设置为/ MT,但当他们启动程序,响应。
I also tried to compile it with Runtime Library set to /MT, but when they start the program it just stops responding.
我只是从我的Release目录中抓取exe。我还有另一个步骤吗?不知道是什么导致的问题,否则。这两个exe的工作完全在我的电脑上,只是不在他们的。
I am just grabbing the exe out of my Release directory. Is there another step I should be taking? Not sure what is causing the issues otherwise. Both exe's work perfectly on my computer, just not on theirs.
原谅我,因为这个问题似乎被问了很多,但我发现的答案都涉及安装 Visual Studio 2013的Visual C ++再分发软件包,我们已尝试过。
Forgive me since this question seems to be asked a lot, but the answers I have found all involve installing "Visual C++ Redistributable Packages for Visual Studio 2013" which we have already tried.
感谢您提出任何意见。
推荐答案
我想如果你安装32位可再发行的,它应该工作。
I think if you install the 32-bit redistributable, it should work.
我想知道是否有一些其他错误导致 MT
静态版本不工作。不清楚给出的信息量,但这是我的想法。
I wonder if there is some other bug that is causing the /MT
static version to not work. Unclear with the amount of information given, but that would be my thought.
这篇关于分发使用Visual Studio 2013编译的exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!