I have write this question on mingw forum...
The answer....
>>>>
You should search the mailing list archives as this is asked every 6 months or so.
The answer is that any multi-threaded C++ app that uses exceptions must be compiled with -mthreads, and enabling this switch adds a dependency on mingwm10.dll and there is absolutely no way around that. It cannot be made static, due to how it works. If you make your app single-threaded and/or you disable exceptions (-fno-exceptions) then you could probably get away without needing -mthreads.
<<<<<
Now my question how disable -mthreads on pro file QMAKE_LFLAGS ??
Bookmarks