[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libssh and MinGW
[Thread Prev] | [Thread Next]
- Subject: Re: libssh and MinGW
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Wed, 31 Jul 2013 10:27:59 +0200
- To: libssh@xxxxxxxxxx
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: MinGW -> MSVC ============== 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 MSVC -> MinGW ============== reimp libssh.lib pexports libssh.dll | sed "s/^_//" > libssh.def dlltool -U -d libssh.def -l libssh.dll.a http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs -- andreas -- Andreas Schneider GPG-ID: F33E3FC6 www.cryptomilk.org asn@xxxxxxxxxxxxxx
libssh and MinGW | Andreas Schneider <asn@xxxxxxxxxxxxxx> |