public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Ralf Habacker" <Ralf.Habacker@freenet.de>
To: "Cygwin" <cygwin@sources.redhat.com>
Subject: RE: Linking to commercial dll's
Date: Sun, 11 Nov 2001 08:26:00 -0000	[thread overview]
Message-ID: <000c01c16f9d$fcf24910$306307d5@BRAMSCHE> (raw)
In-Reply-To: <000901c16ee2$05054420$fa6607d5@BRAMSCHE>

> -----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/

  reply	other threads:[~2001-11-17 19:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-11  8:26 David Westbury
2001-11-11  8:26 ` Charles Wilson
2001-11-11  8:26 ` Ralf Habacker
2001-11-11  8:26   ` Ralf Habacker [this message]
2001-11-11  8:26   ` Ralf Habacker
2001-11-11  8:26     ` Tim Prince
  -- strict thread matches above, loose matches on Subject: below --
2001-11-11  8:26 David Westbury

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000c01c16f9d$fcf24910$306307d5@BRAMSCHE' \
    --to=ralf.habacker@freenet.de \
    --cc=cygwin@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).