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)