title: How to build an standalone shared library in C++ using qmake?
body: <p>I have written a shared library in C++ using qt creator and QMake</p>
  
  <p>When I compile my project with MinGW compiler, I need the libraries <code>libgcc_s_dw2-1.dll</code>, <code>libstdc++-6.dll</code> and <code>libwinpthread-1.dll</code> to be copied next to my DLL in order to work. Which has about 1.5 megabytes size.</p>
  
  <p>When I compile my project with MSVC 2015 compiler, I need to install the <code>Visual C++ Redistributable 2015 x86</code> on the deployment system. Which has about 13 megabytes size.</p>
  
  <p>My project has less than 100 kiloobytes size so these dependencies are so big.</p>
  
  <p>How can I embed them into my library? or How can I have fewer dependencies to be installed or copied next to my project in Windows 7 or upper?</p>
  
  <p>PS 1: I have read <a href="https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows" rel="nofollow noreferrer">this</a>, but the MinGW method was the same as before. And I encountered errors in Microsoft Tools method.</p>
  
  <p>PS 2: Maybe .Net Framework 2.0 is a better option because it is preinstalled on Windows 7 and we can force .Net 4.5 to run it in Windows 8/8.1/10. Don't you agee?</p>