[Interest] Whats the difference between compiling with /MD and /MT?
Nuno Santos
nunosantos at imaginando.pt
Thu Oct 8 23:51:58 CEST 2015
Thiago,
Thanks for your reply.
You have just confirmed me what I have understood from my readings on the MSDN documentation. Question:
When the -static flag is passed to configure what configure does? Because from the compile output I can see the /MD flag even when compiled statically.
I have manually edited the msvc-desktop.conf and changed from MD to MT. Will this make Qt completely independent of the runtime dynamic lib? What are the implications of doing this?
Thanks,
Regards,
Nuno
> On 08 Oct 2015, at 21:22, Thiago Macieira <thiago.macieira at intel.com> wrote:
>
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20151008/7488c628/attachment.html>
More information about the Interest
mailing list