Search code examples
c++visual-c++visual-studio-2012visual-c++-2012

Release .exe for vs2012 c++ requesting MSVCR110.dll


I'm attempting to compile a release executable using vs2012 Express. However, whenever I try to run the .exe on other computers, I get a warning that I need msvcr110.dll. I could simply copy the dll over, but I'm looking for a more long term solution.

In my attempts to isolate what is causing the error, I have reverted back to a new c++ project using the default settings, except for changing the configuration to release in the configuration manager.

I've been trying to solve this on my own for over a week now without any progress, so any suggestions would be appreciated.


Solution

  • Link to the CRT statically. Choose "Multithreaded", and not the DLL option in the Runtime Library dropdown in the project properties.