Possible Duplicate:
Application has failed to start because MSVCP100D.dll was not found, reinstalling app may help…
I compiled my program using Microsoft visual C++ 2010 Express Ed开发者_运维技巧ition and tried to run it on another machine that did not have the same compiler.
As I double clicked it, and there was message saying MSVCP100D.dll file was found missing.
- What sort of file is this?
- Why did the application fail to start?
- What can I do to start the application there?
This is the C++ runtime library dll. You've used the debug version, which won't be found in a user's computer. Compile your program in release mode. This will add a dependency in MSVCP100.dll, which is most likely to be present.
In any case, you must make sure that the dll will be present in user's machine. You can do that by creating an installer or by prompting the user to install the Microsoft Visual C++ 2010 Redistributable Package.
In summary:
- Compile your code in release mode
- Create an installer or use another way to copy the needed dlls to user's machine
What about statically linking your program instead? I have done this in order to avoid this hassle (of either creating an installer, or asking a user to install another package and having to point/handhod them in that direction)
I guess you have to download and install the redistribution package from here to install the runtime environment necessary for your compiled code.
This DLL contains extra functions, which are linked when you run the program. If this DLL is not present, you receive the error message you are experiencing.
精彩评论