On Tue, 11 Jul 2000, Bertho Stultiens wrote:
> Ove Kaaven wrote:
> > > I'm wondering how to link the lib file with GCC under Linux so
> calls to the
> > > > DLL work under Linux.
> > > This is EXACTLY what Winelib is supposed to do.
> >
> > Perhaps Winelib could use a "wine-implib" tool or something... or is such
> > a tool already in the dllglue stuff that's part of the coveted elfdlls?
>
> All you need is a .spec-file to specify the interface. Could be a
> stripped down one (like the .def-files on windows).
Eh? I thought .spec files were supposed to be used for *exporting* a DLL
interface from ELF code... not to *import* a DLL interface from a Windows
.DLL file?! An "implib" does the latter, you know, taking a .DLL file, and
generating import stubs for each entry point the DLL exports, and making
an import library (.lib) file out of it. Or for wine-implib, perhaps an .a
or .o file? A simple version of wine-implib could just generate a
LoadLibrary and a bunch of GetProcAddress calls or something.