QT compile time MinGW remove dependency on GCC dynamic Library (remove dependency on Libgcc_s_dw2-1.dll,libstdc++-6.dll)

Source: Internet
Author: User

Using QT to write something, I generally download the official MinGW compiler toolkit, it has a bad place, often more than the QT library other than the dependency dynamic link library, such as: Libgcc_s_dw2-1.dll,libstdc++-6.dll such a ghost thing, Before using Codeblock to find that there is no such a present, it feels very strange, so carefully looked up a data, the original things can be set by the compiler option to remove them, in fact, is to change the static link to rely on the code in the library.

I am here to directly modify the Qt compiled configuration, find qtdir/mkspec/win32-g++/qmake.conf,qmake_lflags =-static-libgcc-static-libstdc++ changed to this, This code removes the dynamic call dependency on the two dynamic link libraries described above.

Http://www.cnblogs.com/guobbs/p/3777932.html

QT compile time MinGW remove dependency on GCC dynamic Library (remove dependency on Libgcc_s_dw2-1.dll,libstdc++-6.dll)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.