Re-cc:ing the list, for public closure of the issue,
On Thu, 30 Dec 2021, Gisle Vanem wrote:
Hmm, that's quite strange - is there any difference if you'd name the
file liquid32.dll.a instead of liquid32_imp.lib? Because technically,
the new file you generated and the one from --out-implib from ld should
be virtually identical, except for the minor detail that makes it break
when linking two of them with MS link.exe.
Now it's working.
The errors I have was due to '-wholearchive' for 'link.exe'.
Forgot I had that (added that trying to fix thing).
Ok, thanks for letting me know.
But instead of 'dlltool', I now use this instead:
lib -nologo -def:MinGW_obj32/liquid32.def \
-machine:x86 -out:../liquid32_imp.lib
rm -f ../liquid32_imp.exp
'dlltool' is quite slow.
Yep, that should work too. (But if cross compiling the mingw bits from a
unix system, using lib.exe is harder, so there, you'd rather stick with
dlltool.)
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public