"program can't start because msvcp100.dll is missing" for Every single code
Asked Answered
C

4

12

This error is taking toll of my training schedule.

The program can't start because...

Everytime I create any C++ application in my VS2010, It runs fine on my machine but if I run it on different machine, It starts with this error. Error goes if I copy msvcp100.dll in System Folder then it shouts for some other DLL. It requires some 5-6 different DLLs.

Most irritating part is even if I write a simple Console based Addition program, It gives this error. (I should not but)I would have agree if I design some fancy forms and all... But for simple Addition program????

Am I missing out somethings in Settings? or VS2010 to blame??

Somewhat related question: this But this problem seems different

Cohette answered 4/9, 2012 at 8:54 Comment(2)
Possible DuplicateBouffant
@Bouffant I asked this question in Sep 2012 and the question you pointed was asked in Jan 2013 :-)Cohette
R
16

By default, MSVC projects are set to link against the dynamic run time library which generates a dependency on the visual C++ run time redistributable. As you have already found out, this dependency is not guaranteed so your install utility has to install the visual c++ run time first.

You can avoid this by changing your project settings. Load the project properties and go to: "Configuration Properties"/"C/C++"/"Code Generation"

  • In the item labelled "Runtime Library", select "Multi Threaded (/MT)"
  • for the release version"Multi Threaded Debug (/MTd)" for the debug version.

You have to be careful while doing this that all the other libraries that your application links are also compiled against the static run time.

Regardant answered 15/1, 2013 at 15:52 Comment(0)
M
5

You need to have Visual C++ Libraries installed if you want to run your app.

Makeshift answered 4/9, 2012 at 9:0 Comment(3)
Even for simple app?? In good old days when I used to have "TurboC++", never faced this thing!! :(Cohette
Slight flaw in the answer. You gave a link to the x86 redistributable runtime, which contains no such library. But the MSVCP100.DLL is evidently in the x86_64 redistributable VC runtime.Gabar
Incompatible SPs will also cause the same problem. It depends on whether SP1 has been applied to VS. If it hasn't then you may be out of luck with the redistributable solution and you will need to apply SP1 first.Bemock
B
0

Using the compiler options to change the runtime library worked for me ("Configuration Properties"/"C/C++"/"Code Generation". In the item labelled "Runtime Library", select "Multi Threaded (/MT)" for the release version and "Multi Threaded Debug (/MTd)" for the debug version). I did have to do both the debug and the release to get the release to work. Don't know why (it is possible that I did not do it correct the first time).

Note: I was using VC2010 Express version on Windows 7 to compile. I tested on an old XP machine. Another note: MS information at http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.100).aspx

Beseem answered 15/4, 2013 at 5:23 Comment(0)
T
0

If you have installed a new copy of Windows on your computer or have reinstalled one then you will come across an error called "The program can’t start because MSVCP100.dll is missing from your computer. Try reinstalling the program to fix the problem." on your computer.

The basic reason behind this error is that the Visual C++ doesn’t get installed when you reinstall or install a fresh copy of Windows operating system. In order to check Visual C++ is installed on your PC or not, open Control Panel → All Programs and Features and then search for Visual C++ in the software list. If you don’t find the software installed there then you have to install it.

I would suggest, first of all, install the Visual C++ 2010 package and check if it has solved msvcp100.dll missing error or not. If the issue is not resolved by the Microsoft Visual C++ 2010 then install 2013 or 2015 versions of Microsoft Visual C++. Here is the list of download links of Microsoft Visual C++ for both x86 and x64 architectures:

  • Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
  • Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)
  • Visual C++ Redistributable Packages for Visual Studio 2013
  • Visual C++ Redistributable for Visual Studio 2015

The latest supported Visual C++ downloads

I hope, now you are able to fix “The program can’t start because MSVCP100.dll is missing error on your computer. To know more details, you can follow this guide.

Thanks

Tansey answered 31/3, 2016 at 7:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.