Visual Studio 2013 msvcr120 to msvcr100

后端 未结 3 1189
萌比男神i
萌比男神i 2020-12-14 10:57

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?

I d

相关标签:
3条回答
  • 2020-12-14 11:04

    One thing to consider in regards to changing the platform toolset: it changes the compiler, so C++ features newer than Visual Studio 2010 will not compile. It also requires the other version to be installed.

    The best way to handle this would be to give them the Visual C++ Redistributable for Visual Studio 2013.

    You could either have them do it themselves, or make an installer.

    0 讨论(0)
  • 2020-12-14 11:06

    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.
    0 讨论(0)
  • 2020-12-14 11:10

    In Project > Properties > General, there is a setting called Platform toolset. You can use that to change the version of the build toolchain used.

    screenshot

    0 讨论(0)
提交回复
热议问题