I have the following problem: I use Microsoft Visual Studio 2012 and it adds msvcp110.dll to my release. I've read some posts here and there and I know that it's caused by the fact I use both iostream and string and that links it to my program. I have no problem using this on my PC, but I'd like to show it to others. So my question is, how do I, as painless for others as possible, can get around the issue, and still use some basic std goodies? I know that others could just install Visual Studio Runtime stuff but it's kind of painful.
If you intend to keep your application dynamically-linked, your end-users need to install the Visual C++ Redistributable for Visual Studio 2012.
This is the preferred way to deliver applications for the following reasons:
Alternatively, you could statically link your executable. Do this by changing the build options for the program in Visual Studio.
In Visual Studio 2010, this is under Configuration Properties > C/C++ > Code Generation > Runtime Library.
The default (/MD
/ /MDd
) tell VS to link against their runtime DLL.
To statically link, you want to change this to one of the non-DLL options (/MT
/ /MTd
) Make sure to select the correct Debug/Non-Debug version (the little d
in the switch).
See also:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With