Question:
How can I use one of my C++ programs on another computer without Visual Studio?
nick
2015-07-16 19:09:14 UTC
I made a C++ program with Visual Studio and want to use it on another computer without Visual Studio. I tried to use it but got the error "MSVCP110D is missing from you computer." Is there something I can transfer from Visual Studio to fix this?
Four answers:
_Object
2015-07-16 21:58:54 UTC
You need to install the Microsoft C++ runtime libraries on the target computer, statically link your code, or distribute the dependencies yourself (you can use the program `depends.exe' to find which).



While statically linking your code to system libraries is a solution, you shouldn't, because it's possible major security and stability issues might result.



Really, your best choice is to use an installer to deploy the app and it's dependencies properly.



If I remember correctly, the `D' suffix on the DLL name indicates that your program links to the `debug' version of this library (i.e., it's a library distribution with extra metadata for developers).

I have solely run Linux for the past several years (and I used Emacs even when I was running Windows), but I _think_ that there is a menu somewhere which toggles between `release' and `debug' modes.



This documentation probably explains how to deploy your C++ program.

https://msdn.microsoft.com/en-us/library/zebw5zk9.aspx
AJ
2015-07-17 07:19:11 UTC
Build your project/solution and then publish it. Prior to that, in the project's settings, you can set it up so when program is installed on another computer it will install, if missing, any application dependencies.
Jim Langston
2015-07-17 02:58:46 UTC
The 'D' in MSVCP110D stands for debug mode. Compile your program in production mode. The debug file is not redistributed and is for you to use when you are programming it.
?
2015-07-16 19:14:32 UTC
It sounds like you're missing the MSVCP110D.dll. Can you add some more details? What type of application is it (i.e. console app)? Are you compiling it in Debug mode or Release? How are you deploying it to the new machine?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...