Run time missing Msvcp100d.dll and Msvcr100d.dll

Source: Internet
Author: User
Tags visual studio 2010

111111 and 22222


0. Sent a demo to a friend, received a hint: Lost Msvcr100d.dll

1. A look is run the library file, hurriedly let friend download and install VC + + redistribution, friend feedback or hint to lose this DLL file

2. Copy my local DLL to his machine, prompt for success

3. Too strange, ah, this thing is VC + + Runtime files Ah, why installed redistribution not yet?

4. I noticed that the file name of 100 followed by a D word, reminds me of debug~

5. Inside the VC find setting, finally found: Property->c/c++->code generation->runtime Library

6. Summary:

Msvcr100d.dll, this DLL corresponds to the setting of the runtime library version of the C + + compiler's code generation. The default vs2010 will set him to the multi-threaded Debug DLL (/MDD), where Msvcr100d.dll is used. Normal release should be set to multi-threaded (/MT) or/MD, then will go to use VC + + redistribution in the DLL. DLL with D contains debug functionality required for living debug, but not in redistribution.

7. In addition, changing the compilation mode directly from debug to release also modifies this configuration. But don't forget to put the release of VC + + dictionary in the value and link input reconfiguration Oh, these configurations will also not be copied from debug.



Recently developed a program, copy to the virtual machine environment when the test prompts the lack of msvcr100.dll, so think of compile-time settings option to remove dependencies.

What is Msvcr100.dll MS = Microsoft
V = Visual
c = C Program language
R = Run-time
MB = Version
What is Msvcp100.dll MS = Microsoft
V = Visual
CP = C + +
MB = version
Way to solve Release version Visual Studio 2010, open the items on the menu properties: Opening Configuration Properties | C + + | The code generation finds the runtime. Change the multithreaded DLL (/MD) to multithreading (/MT)
Recompile.
Debug Version Visual Studio 2010, open Item properties on menu:

Open Configuration Properties | C + + | Code generation finds the runtime. Change the Multithreaded debug DLL (/MDD) to multithreaded debugging (/MTD)
Recompile.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.