[Mingw-users] How to generate the _imp_ prefix?

Back to archive index
Joachim Wuttke j.wut****@fz-ju*****
Wed Jan 22 05:04:36 JST 2020


> 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>


More information about the MinGW-Users mailing list
Back to archive index