[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libssh and MinGW

On Wednesday 31 July 2013 09:55:43 Andreas Schneider wrote:
> Hi,
> I've made sure that master is compiling with Visual Studio and MinGW just
> fine.
> Visual Studio creates a .lib file normally you need for linking. If I
> remember correctly. MinGW produces a libssh.dll and libssh.dll.a file. The
> libssh.dll.a is the same as the lib file, right? Is it possible to create a
> lib file too?

I've found it:


Use MinGW pexports to create a def file:
pexports libssh.dll > libssh.def

Then use the MSVC lib tool:
lib /machine:x86 /def:libssh.def


reimp libssh.lib
pexports libssh.dll | sed "s/^_//" > libssh.def
dlltool -U -d libssh.def -l libssh.dll.a


	-- andreas

Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

libssh and MinGWAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org