[Interest] Whats the difference between compiling with /MD and /MT?

Thiago Macieira thiago.macieira at intel.com
Thu Oct 8 22:22:57 CEST 2015


On Thursday 08 October 2015 20:29:20 Nuno Santos wrote:
> Hi,
> 
[cut]

-MD tells Visual Studio that you're linking against the .dll that contains the 
release-mode version of its runtime. The -MT option tells it that you're going 
to link against the .lib that contains the release-mode static version.

If you want to use -MT, you MUST NOT enable any DLLs that link to the runtime. 
Please recompile Qt in static mode too and you'll probably need to recompile a 
few of the dependencies too.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list