Compiler wrong settings?

Hi all,

I'm experiencing with C++ but I've the next problem:

When I send my .exe file to people who has not installed Visual Studio, the program does not work:

"Could not find MSVCR100.dll"

Does anyone know how I can solve this? Do I have to include this DLL file to my program, in that case: how?

Greets
Just distribute the file "MSVCR100.dll" along with your program - or make them install the msvc runtime.

http://www.microsoft.com/download/en/details.aspx?id=5555
Thanks a lot! Problem solved. :)
Noooo! Do not do that, it is a horrible solution.

Change your build configuration from Debug to Release.
This removes the dependency, makes the EXE smaller, and it runs faster.
Last edited on
MSVCR100.dll is still required for release builds. They just don't require MSVCR100D.dll anymore.
Last edited on
Are you sure? That sounds stupid...maybe in the Release settings it just needs to be changed from Multithreaded Executable to Executable (or something along those lines)? I seem to remember something like this...
closed account (1yR4jE8b)
You can statically link to the runtime by passing the /MT switch to the compiler.

Edit: You can do this from within Visual Studio by using:

Tools -> Options -> C++ -> Code Generation -> Runtime Library

and setting it to: Multi-threaded (/MT) or Multi-threaded Debug (/MTd)
Last edited on
Topic archived. No new replies allowed.