Visual Studio 2013 msvcr120 到 msvcr100
是否可以将 restrib 文件更改为 msvcr100,以便其他计算机可以运行该程序而不会出现 .dll 文件问题?如果是这样,我如何得到它?
Is it possible to change the restrib file to msvcr100 so other computers can run the program without having problems with the .dll file? If so how do i get that?
我确实编译了程序,但由于缺少 msvcr120.dll 文件,其他人无法使用它.所以如果我能以某种方式改变它会很棒.
I do compile the program and other people can't use it because of the missing msvcr120.dll file. So it would be great if i could change that somehow.
是否可以在没有旧版 Visualstudio 的情况下安装 Plattformtoolset?
Is it possible to install the Plattformtoolset without a older Visualstudio version?
推荐答案
您有几个选择:
- 在机器上安装 VS2010,并将 Platform Toolset 选项设置为 v100.
- 从此处,这应该/可以在 VS2013 中向您的平台工具集菜单添加一个新选项.尽管如此,让它工作可能非常繁琐.(开箱即用很少对我有用).请注意,如果您在应用程序中使用 MFC,则此选项对您没有任何好处 - 此 SDK 中不包含 MFC 库.
- 让您的用户从 在这里,然后继续.
- 静态链接到 VS2013 运行时,而不是使用动态链接到运行时 DLL.您可以在 IDE 中通过
C/C++ > 下的项目设置进行设置.代码生成运行时库多线程 (/MT)
或(/MTd)
.所有需要的代码都将编译到您的应用中,这会使文件更大,但会避免您提到的问题.
- Install VS2010 on the machine, and set the Platform Toolset option to v100.
- Install the Windows SDK v7.0A from here, which SHOULD / CAN add a new option to your Platform Toolset menu in VS2013. Getting this to work can be quite fiddly though. (It's rarely worked for me right out of the box). Note if you use MFC in your application, this option isn't any good for you - MFC libraries are not included with this SDK.
- Get your users to install the Microsoft VS 2013 C++ Redistributable Package from here, and carry on regardless.
- Statically link to the VS2013 runtimes, instead of using dynamic linking to the runtime DLLs. You can set this in the IDE through project settings under
C/C++ > Code Generation > RunTime Library > Multi-threaded (/MT)
or(/MTd)
. All the needed code will be compiled into your app, which will make the files bigger, but will avoid the issues you mention.
相关文章