Why compiled application need msvcr120.dll in customer's PC?
-
I compile my project with QT5.9.1(mingw)
Why it need msvcr120.dll in customer's PC, and how to resolve this to my app package?
Thanks.@brucezcg Take a look at http://doc.qt.io/qt-5/windows-deployment.html
-
@brucezcg
I have noticed in the dependency walker that, at least in Qt5.11.2 using mingw53 that the libgcc_s_dw2-1.dll requires msvcrt.dll. This is probably why you need the msvcrt120.dll.If you totally wish to do away with M$VC, try using the MSYS2 distribution.
-
I compile my project with QT5.9.1(mingw)
Why it need msvcr120.dll in customer's PC, and how to resolve this to my app package?
Thanks.@brucezcg
From what I read it appears MinGW has always usedmsvcrt.dll
.If you do not want that, something like https://sourceforge.net/p/mingw-w64/mailman/message/31883429/ says
You can link it statically by using
-static-libgcc
.[EDIT Hmm, not sure whether that only avoids dependency on
libgcc.dll
or onmsvcrt.dll
too, you'll have to give it a go... Wait! Good news. Elsewhere:You might also want to link libgcc statically using
-static-libgcc
to prevent the libgcc DLL pulling inmsvcrt.dll
.]