ISTB
ISTB

Reputation: 1817

Visual Studio 2010 Runtime Libraries

I wrote a tool that many users would use on their computers. I noticed however, that users who do not have visual studio installed, cannot open my executable. The error says that msvcp100.dll is missing. I found in internet a redistributable package from microsoft, that should apparently provide these dlls. My question is: is there another way to bypass this problem? Something like an option in the project properties?

Upvotes: 2

Views: 9425

Answers (2)

Hans Passant
Hans Passant

Reputation: 941337

Yes, you can change a compiler setting to link the C++ standard library classes into your program instead of having a dependency on the DLL. Right-click your project in the Solution Explorer window, Properties. Switch to the Release configuration (upper left). C/C++, Code Generation, Runtime Library setting. Select /MT.

Only do this when you only have a single monolithic EXE. When you use your own DLLs then you really need msvcr100.dll and msvcp100.dll so that the runtime library gets shared between all modules.

Upvotes: 5

Milind Thakkar
Milind Thakkar

Reputation: 980

It is part of C++ runtime and the target machine needs it. THere are couple of ways to address it.

Please check following link from Microsoft MCVCP100.DLL

Upvotes: 3

Related Questions