Visual Studio 2013 msvcr120 to msvcr100(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.
这篇关于Visual Studio 2013 msvcr120 到 msvcr100的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Visual Studio 2013 msvcr120 到 msvcr100
基础教程推荐
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 常量变量在标题中不起作用 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 我有静态或动态 boost 库吗? 2021-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
