title: Can't compile shared library in Mingw, compiler doesn't see system library
body: <p>I get this warning trying to compile open source library with MinGW (msys2) in Windows</p>
  <pre><code>*** Warning: linker path does not have real file for library -lcrypt32.
  *** I have the capability to make that library automatically link in when
  *** you link to this library.  But I can only do this if you have a
  *** shared version of the library, which you do not appear to have
  *** because I did check the linker path looking for a file starting
  *** with libcrypt32 and none of the candidates passed a file format test
  *** using a file magic. Last file checked: C:/msys64/mingw32/i686-w64-mingw32/lib/libcrypt32.a
  </code></pre>
  <p>Because of this error I can't compile shared library only static.</p>
  <p>File <code>C:/msys64/mingw32/i686-w64-mingw32/lib/libcrypt32.a</code> exists and normally links in another libraries under the same environment</p>