c++visual-studio-2010ide

C++ VS2010 difference between "Multihreaded DLL" and "Multithreaded"


I created a DLL in VS2010 and used "Multithreaded" under C/C++->Code generation->Runtime library.

Now I wondered what the difference between "Multithreaded" and "Multithreaded-DLL" is.


Solution

  • The multithreaded option will link the CRT statically, whereas multithreaded DLL will link to a dynamic library.

    With the former option, you'll get a larger binary, but you won't have to install Visual Studio redistributables everywhere you use it.