I'm building a C++ DLL with Visual Studio 2015, and I'd like to deploy a debug build to another (internal, not customer) machine without a Visual Studio dev environment, which means I'll have to statically link to MSVCRT (linker option '/MTd'). My project depends on a static library foo.lib (debug version) that seems to be built with '/MDd', and while linking, it expectedly throws:
"foo.lib(bar.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in dllmain.obj"
Is there any way I can override this and force '/MTd'?