<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] QT 4.8* VS2010 &#x2F;MT &amp; &#x2F;MTd]]></title><description><![CDATA[<p dir="auto">Hi everyone!<br />
My should be destributed with InnoSetup installation for normal users(without any admin rights), and Qt needs vcredist to be installed wich needs admin rights to be installed... so I've decided to compile Qt(and my App itself) with /MT flag instead of /MD...<br />
I've simply changed qmake.conf in mkspecs/win32-msvc2010:<br />
@QMAKE_CFLAGS_RELEASE    = -O2 -MT<br />
QMAKE_CFLAGS_DEBUG      = -Zi -MTd<br />
@</p>
<p dir="auto">Compilation was done flawlessly... without any errors....</p>
<p dir="auto">BUT, using QtWebKit brings me following error:<br />
@Invalid Address specified to RtlFreeHeap@</p>
<p dir="auto">Is that a known BUG? Is it WebKit or Qt BUG?<br />
And is it possible to get rid of it?</p>
]]></description><link>https://forum.qt.io/topic/16056/solved-qt-4-8-vs2010-mt-mtd</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 20:27:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/16056.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Apr 2012 15:17:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] QT 4.8* VS2010 &#x2F;MT &amp; &#x2F;MTd on Sun, 03 Aug 2014 13:05:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello All,<br />
I am new QT and I have been trying to build a static build of QT for MSVC2013. But the Nmake fails with the following types of linker errors. Appreciate your help in resolving these :<br />
link /NOLOGO /DYNAMICBASE /NXCOMPAT /STACK:4194304 /INCREMENTAL:NO /SUBSYSTEM:CONSOLE/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='<em>' proces<br />
sorArchitecture='</em>'" /MANIFEST/MANIFESTFILE:......\bin\qdoc.exe.embed.manifes<br />
t /OUT:......\bin\qdoc.exe <a class="plugin-mentions-user plugin-mentions-a" href="/user/c">@<bdi>C</bdi></a>:\Users\dlink14\AppData\Local\Temp\nm1DD8.tmp<br />
Qt5Xml.lib(qdom.obj) :</p>
<p dir="auto">error LNK2038: mismatch detected for 'RuntimeLibrary': va<br />
lue 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in atom.obj<br />
Qt5Xml.lib(qxml.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in atom.obj<br />
msvcprt.lib(MSVCP120.dll) : error LNK2005: "void __cdecl std::_Xbad_alloc(void)"<br />
(?_Xbad_alloc@std@@YAXXZ) already defined in libcpmt.lib(xthrow.obj)<br />
msvcprt.lib(MSVCP120.dll) : error LNK2005: "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) already defined in libcpmt.lib(xthrow.obj)<br />
msvcprt.lib(MSVCP120.dll) : error LNK2005: "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) already defined in libcpmt.lib(xthrow.obj)<br />
msvcprt.lib(MSVCP120.dll) : error LNK2005: "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPBDH@Z) already defined in libcpmt.lib(syserror<br />
.obj)<br />
msvcprt.lib(MSVCP120.dll) : error LNK2005: "char const * __cdecl std::<em>Winerror</em><br />
map(int)" (?_Winerror_map@std@@YAPBDH@Z) already defined in libcpmt.lib(syserror.obj)<br />
MSVCRT.lib(MSVCR120.dll) : error LNK2005: _memmove already defined in LIBCMT.lib(memmove.obj)<br />
MSVCRT.lib(MSVCR120.dll) : error LNK2005: __hypot already defined in LIBCMT.lib(hypot.obj)<br />
MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_in fo(class type_info const &amp;)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBC<br />
MT.lib(typinfo.obj) MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info &amp; __thiscalltype_info::operator=(class type_info const &amp;)" (??4type_info@@AAEAAV0@ABV0@@Z) a<br />
lready defined in LIBCMT.lib(typinfo.obj)<br />
Creating library ......\bin\qdoc.lib and object ......\bin\qdoc.exp<br />
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library<br />
......\bin\qdoc.exe : fatal error LNK1169: one or more multiply defined symbols found NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x491'<br />
Stop.<br />
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'</p>
<p dir="auto">I have configured the conf file as advised in the post as follows<br />
QMAKE_CFLAGS_RELEASE    = -O2 -MT<br />
QMAKE_CFLAGS_DEBUG      = -Zi -MTd</p>
<p dir="auto">and before running nmake set the configuration as follows :<br />
configure -debug-and-release -opensource -static -opengl desktop -mp -nomake examples -platform win32-msvc2013</p>
<ul>
<li>Appreciate your response.</li>
</ul>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.qt.io/post/151682</link><guid isPermaLink="true">https://forum.qt.io/post/151682</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 03 Aug 2014 13:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] QT 4.8* VS2010 &#x2F;MT &amp; &#x2F;MTd on Fri, 20 Apr 2012 16:58:22 GMT]]></title><description><![CDATA[<p dir="auto">Oh, right! I've totally forget about that!!! Allocating heap in one dll with own crt and trying to free it in another with it own crt can't be done! Thank you!</p>
]]></description><link>https://forum.qt.io/post/136417</link><guid isPermaLink="true">https://forum.qt.io/post/136417</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 20 Apr 2012 16:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] QT 4.8* VS2010 &#x2F;MT &amp; &#x2F;MTd on Fri, 20 Apr 2012 15:46:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">if I remember correctly, "/MT links the c-runtime statically.":<a href="http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.80).aspx" target="_blank" rel="noopener noreferrer nofollow ugc">http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.80).aspx</a> This means, each library and the executable have own versions of the c-runtime.</p>
<p dir="auto">Statical linkage might result in different heaps you are using which will exactly throw out this error.</p>
]]></description><link>https://forum.qt.io/post/136411</link><guid isPermaLink="true">https://forum.qt.io/post/136411</guid><dc:creator><![CDATA[giesbert]]></dc:creator><pubDate>Fri, 20 Apr 2012 15:46:26 GMT</pubDate></item></channel></rss>