> Anyway, the way I usually produce import libraries is via the > "-Wl,--out-implib=" switch to GCC on the link command line. That > produces import libraries with the __imp__ prefixes, so this stuff > does work and the produced libraries should be usable with MSVC > (although I never tried). I added add_compile_options(-Wl,--out-implib,libmylib.dll.a) to the top-level CMakeLists.txt; it changed nothing. - Joachim -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5338 bytes Desc: S/MIME Cryptographic Signature URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200121/cdf3259c/attachment.bin>