This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Linking to commercial dll's
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- To: "Cygwin" <cygwin at sources dot redhat dot com>
- Date: Sat, 17 Nov 2001 20:28:08 +0100
- Subject: RE: Linking to commercial dll's
> -----Ursprüngliche Nachricht-----
> Von: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]Im Auftrag von Ralf Habacker
> Gesendet am: Freitag, 16. November 2001 22:03
> An: Cygwin
> Betreff: RE: Linking to commercial dll's
<snip>
> 1. For a deeply explanation of the windows dll format look at
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwbg
> en/html/ms
> dn_peeringpe.asp.
>
> 2. You have to create a ld compatible import library. You can use the tools
> impgen and dlltool for doing this. impgen comes from the libtool
> package and is
> appended to this mail. dlltool is a part of the basic cygwin.
>
> Here is an example for a dll named 'libxslt.dll':
>
> 1. compile the tool impgen with the appended source file
>
> gcc -o impgen impgen.c
> cp ./impgen /usr/local/bin
>
>
> 2. create a file with all exported symbols from the dll (it's called 'def'
> file).
>
> impgen libxslt.dll >libxslt.def
I should note that there is another tool pexports, which does the same as impgen
with the enhancement of exporting data symbols
You can found pexports under http://www.is.lg.ua/~paul/devel/binutils.html
Regards
Ralf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/