From: Krieg, Jeremy <Jeremy.K<rieg@yo...> - 2002-01-24 07:03:31
Please, if anyone can help with this issue it would be much appreciated
by myself also. I am having a similar problem in that I have a
third-party dll that I am trying to link with some code that I am
compiling using gcc, and I can't seem to generate an appropriate ".a"
import library for the DLL. I have tried the following command:
dlltool -D dnsapi.dll -l libdnsapi.a
and it does generate the ".a" file, but the file appears to be empty
more-or-less empty - if you look at it with a hex or text editor, there
is a bit of stuff but none of the the symbol names are there. I know
that this is not because the symbols have been stripped from the DLL,
because if I use the Borland implib utility on this DLL it will generate
the correct import library (for the Borland compiler of course).
Essentially what I need is the gcc equivalent of implib, which is what I
thought dlltool was supposed to do, but I can't seem to get it to work