Visual Studio 2013 msvcr120到msvcr100 [英] Visual Studio 2013 msvcr120 to msvcr100

查看:326
本文介绍了Visual Studio 2013 msvcr120到msvcr100的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将restrib文件更改为msvcr100,以便其他计算机可以运行程序,而没有.dll文件的问题?如果是这样,我该怎么办?



我编译程序,其他人不能使用它,因为缺少msvcr120.dll文件。



是否可以在没有较早的VisualStudio版本的情况下安装Plattformtoolset?


  1. 在机器上安装VS2010,然后选择将平台工具集选项设置为v100。

  2. 这里,它应该/可以添加一个新的选项到VS2013中的平台工具集菜单。让这个工作可以相当fiddly。 (它很少为我工作的开箱即用)。请注意,如果您在应用程序中使用MFC,此选项不会有任何好处 - 此SDK不包括MFC库。

  3. 让您的用户安装Microsoft VS 2013 C ++ Redistributable从此处下载资料包,并随时进行。

  4. 静态链接到VS2013运行时,而不是使用动态链接到运行时DLL。您可以在IDE中通过 C / C ++>下的项目设置来设置此选项。代码生成>运行时库>多线程(/ MT)(/ MTd)。所有需要的代码将被编译到你的应用程序,这将使文件更大,但会避免你提到的问题。


Is it possible to change the restrib file to msvcr100 so other computers can run the programm without having problems with the .dll file? If so how do i get that?

I do compile the Programm and other people cant use it because of the missing msvcr120.dll files. So it would be great if i could change that somehow.

Is it possible to install tha Plattformtoolset without a older Visualstudio version?

解决方案

You have a few choices:

  1. Install VS2010 on the machine, and set the Platform Toolset option to v100.
  2. 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.
  3. Get your users to install the Microsoft VS 2013 C++ Redistributable Package from here, and carry on regardless.
  4. 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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