C ++ executable - msvcr100.dll not found error

I downloaded and compiled an open source C ++ application, Frhed .

When I run the version that I compiled, it requires MSVCR100 and several other DLL files (part of the distribution for Visual C ++). However, when I run the original pre-compiled Frhed executable, it starts without any C ++ redistributable package.

Do I need to change any compilation options in order to unlink the program from C ++ distributed libraries?

+5
source share
2 answers

The source program is probably statically linked , while you are trying to dynamically link your executable, which results in a smaller file, but depends on the functions inside MSVCR100.dll(v10 Microsoft C Runtime Library) that would be included inside the executable if you statically link.

To statically link the DLL, go to your project properties and change the build mode from MDto MT. In Visual Studio 2010/2012, this project property is C / C ++ → Code Generation → Runtime Library.

+13
source

The short answer is yes , the longer answer is, well, longer.

msvcr100.dll - 10.0 ( Visual Studio 2010) DLL- C -time, , , , /MD. , /MT .

msvcr100.dll( ) .

+7

All Articles