This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

converting msvc .lib's to gnu-win32 .a's


Hi,

I want to convert some 3rd-party stuff (.lib and .dll) to gnu-win32 format (.a)
to make it accessible for ld.
The dll's I ported with the following commands :

dumpbin /exports 3rd-party.dll > 3rd-party.def

--------> edit <name>.def to the right export structure
--------> does anybody know a better tool or an easier way ?

dlltool --dllname 3rd-party.dll --output-lib lib3rd-party.a --def 3rd-party.def

But how can I convert the 3rd-party's libraries (.lib) to gnu-win32 format (.a) ?
I think the standard libraries (libkernel32.a,libuser.a,...) are also converted from
original msvc libraries.
Is it neccessary to create first a dll or is there an easier way to get a gnu-win32
library ?


Regards,

Thomas



------------------------------------------------------------------------------------------
Thomas Vetter                                   Phone:  +49 69 6649 2415
Cegelec AEG Systems                             FAX:    +49 69 6649 2261
Abt.: A/RD 1
Lyoner Str. 9                                   e-mail: vetter@aat-f.aeg-f.de
60528 Frankfurt                                 WWW:    http://thomasvetter.aat-f.aeg-f.de
Germany
------------------------------------------------------------------------------------------

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]