title: Visual C++ executable and missing MSVCR100d.dll
body: <p>I know this has been asked in other places and answered, but I'm having issues with MS Visual Studio 2010. I've developed a C++ executable but if I run the Release version on a machine that doesn't have the VC++ runtime library (ie, msvcr100d.dll), I get the "program cannot start because msvcr100d.dll is missing from your computer" error.</p>
  
  <p>This is weird for two reasons:</p>
  
  <ul>
  <li>Why is it trying to link with the debug version of the redistributable?</li>
  <li>I tried applying <a href="http://www.rhyous.com/2010/09/16/avoiding-the-msvcr100-dll-or-msvcr100d-dll/">this fix</a>, setting the runtime library setting to /MT instead of /MD (multi-threaded DLL), but that only made the problem worse (if I manually copied msvcr100d.dll, it then said it couldn't find msvcp110.dll).</li>
  </ul>
  
  <p>How can I package the runtime library with my executable so that I can run it on machines that don't have MS VC 2010 or the redistributable installed?</p>
  
  <p>I know it's considered a security risk to include a copy of the DLL since it won't ever be updated, but my goal is just to send this executable to a few friends in the short term.</p>