独立VS 2010 C ++程序 [英] Standalone VS 2010 C++ Program

查看:183
本文介绍了独立VS 2010 C ++程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我使用VS 2010和C ++以来,已经很久了,随着我回到使用它,我遇到了去年困扰我的同样的问题:我编译的exe不要在没有正确的C ++运行时的旧机器上运行良好。我甚至不知道给他们什么链接,我告诉他们安装在他们有一个错误,说程序无法启动,因为MSVCR100.dll从您的计算机中丢失。尝试重新安装程序来解决这个问题。单击确定关闭应用程序。所以我进入并将代码生成设置为/ MT并禁用了很多选项,并试图搞定大量的选项,但仍然有相同的结果。

it's been a long while since I've used VS 2010 and C++, and as I'm getting back to using it, I'm running into the same problems that plagued me last year: the exe's that I compile do not run well on older machines that do not have the correct C++ runtimes. I do not even know what link to give them, and I told them to install this after they had an error that said "The program can't start because MSVCR100.dll is missing from your computer. Try Reinstalling the program to fix this problem. Click OK to close the application."). So I went in and set the code generation to /MT and disabled quite a few options, and tried messing around with lots of options, but still the same result.

我的问题是:是否有完整的VS 2010 C ++可分发的列表,我可以只是给和告诉他们安装所以我编译在我的VS 2010上的所有C ++程序将工作在Windows XP或更好,一种方式到一般独立的exe包含它需要工作的所有,而不依赖DLL?我想像是链接到一个库,有一切exe引用。如果它有帮助,我正在为x64和x86构建。

My question is: Is there a list of complete VS 2010 C++ distributables that I can just give and tell them to install so all of the C++ programs I compile on my VS 2010 will work on Windows XP, or even better, a way to general a standalone exe that contains all it needs to work, and does not rely on DLLs? I'm thinking like linking to a library that has everything the exe references. If it helps, I'm building for both x64 and x86.

推荐答案

最简单的做法是只安装VC ++可再分发包。它同时拥有 x86 x64 版本。

The easiest thing to do is to just install the VC++ Redistributable Package. It has both x86 and x64 versions.

这篇关于独立VS 2010 C ++程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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