and it gives a long set of errors associated with linking,
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/../../../../x86_64-w64-mingw32/lib/libgcrypt.a(libgcrypt_la-visibility.o):(.text+0x2d): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/../../../../x86_64-w64-mingw32/lib/libgcrypt.a(libgcrypt_la-visibility.o):(.text+0x52): undefined reference to `gpg_err_code_from_errno'
/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/../../../../x86_64-w64-mingw32/lib/libgcrypt.a(libgcrypt_la-visibility.o):(.text+0x10): undefined reference to `gpg_strerror'
...