Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 964
rycander Avatar asked Dec 07 '25 14:12

rycander


2 Answers

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

like image 154
selbie Avatar answered Dec 09 '25 02:12

selbie


In your project properties choose option Configuration Properties/C/C++/Code Generation/Runtime Library and pick option 'Multi-threaded (/MT)' (or 'Multi-threaded Debug (/MTd)' for your debug configuration).

like image 35
john Avatar answered Dec 09 '25 02:12

john