From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Emanuele ALIBERTI <ealiberti@hotmail.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Dlls @n symbols
Date: Wed, 23 Jun 1999 09:08:00 -0000 [thread overview]
Message-ID: <199906231500.KAA00598@mercury.xraylith.wisc.edu> (raw)
In-Reply-To: <19990623070926.36354.qmail@hotmail.com>
Emanuele ALIBERTI <ealiberti@hotmail.com> writes:
> I had to face the same problem. But could not solve it completely yet. There
> is also a mistake in the dlltool documentation, where it is told the figure
> after @ is the function's ordinal number: it is actually the stack size the
> exported function will add to the ESP on return (that's STDCALL).
> To make a clean exports table, now I use explicit aliasing in the .DEF file:
I'll take a look at the doc. I believe the docs refer the number "1" below
as the ordinal, not the @<n> number in foo@0.
EXPORTS
foo = foo@0 @ 1 ; 1 is the ordinal number.
> ----------
> LIBRARY sample
> EXPORTS
> Bar=Bar@0
> Foo=Foo@24
It turns out that Suhaib's problem is very different than yours.
What you're telling the dll tools is that you want to link with Bar@0, but
have the DLL export Bar; similarly with Foo. One way to get both in the
export list is the following:
LIBRARY sample
EXPORTS
Bar@0
Bar=Bar@0
Foo@24
Foo=Foo@24
> ----------
> but still fail to generate an import library which makes the application
> dynamically link correctly. In the context of the previous example .DEF, I
> get errors like "Loader could not find Foo@24 in sample.dll" (in fact
> sample.dll exports now "Foo", not "Foo@24").
Now sample.dll exports both Foo and Foo@24.
dllwrap and dlltool both provide --add-stdcall-alias option just for this
so you don't have to do this manually. See my dllhelpers examples for more
info at http://www.xraylith.wisc.edu/pub/khan/gnu-win32/dllhelpers.html .
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
WARNING: multiple messages have this Message-ID
From: Mumit Khan <khan@xraylith.wisc.EDU>
To: Emanuele ALIBERTI <ealiberti@hotmail.com>
Cc: cygwin@sourceware.cygnus.com
Subject: Re: Dlls @n symbols
Date: Wed, 30 Jun 1999 22:10:00 -0000 [thread overview]
Message-ID: <199906231500.KAA00598@mercury.xraylith.wisc.edu> (raw)
Message-ID: <19990630221000.DljaxTtDx-WyPTsSoTvdoAc-a0z8S5n2dV3qLfhMIt8@z> (raw)
In-Reply-To: <19990623070926.36354.qmail@hotmail.com>
Emanuele ALIBERTI <ealiberti@hotmail.com> writes:
> I had to face the same problem. But could not solve it completely yet. There
> is also a mistake in the dlltool documentation, where it is told the figure
> after @ is the function's ordinal number: it is actually the stack size the
> exported function will add to the ESP on return (that's STDCALL).
> To make a clean exports table, now I use explicit aliasing in the .DEF file:
I'll take a look at the doc. I believe the docs refer the number "1" below
as the ordinal, not the @<n> number in foo@0.
EXPORTS
foo = foo@0 @ 1 ; 1 is the ordinal number.
> ----------
> LIBRARY sample
> EXPORTS
> Bar=Bar@0
> Foo=Foo@24
It turns out that Suhaib's problem is very different than yours.
What you're telling the dll tools is that you want to link with Bar@0, but
have the DLL export Bar; similarly with Foo. One way to get both in the
export list is the following:
LIBRARY sample
EXPORTS
Bar@0
Bar=Bar@0
Foo@24
Foo=Foo@24
> ----------
> but still fail to generate an import library which makes the application
> dynamically link correctly. In the context of the previous example .DEF, I
> get errors like "Loader could not find Foo@24 in sample.dll" (in fact
> sample.dll exports now "Foo", not "Foo@24").
Now sample.dll exports both Foo and Foo@24.
dllwrap and dlltool both provide --add-stdcall-alias option just for this
so you don't have to do this manually. See my dllhelpers examples for more
info at http://www.xraylith.wisc.edu/pub/khan/gnu-win32/dllhelpers.html .
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next prev parent reply other threads:[~1999-06-23 9:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-23 0:09 Emanuele ALIBERTI
1999-06-23 9:08 ` Mumit Khan [this message]
1999-06-30 22:10 ` Mumit Khan
1999-06-30 22:10 ` Emanuele ALIBERTI
-- strict thread matches above, loose matches on Subject: below --
1999-08-08 14:58 Emanuele ALIBERTI
1999-08-31 23:49 ` Emanuele ALIBERTI
1999-07-08 4:41 Emanuele ALIBERTI
1999-07-31 18:34 ` Emanuele ALIBERTI
1999-07-05 23:21 Emanuele ALIBERTI
1999-07-06 11:16 ` Mumit Khan
1999-07-31 18:34 ` Mumit Khan
1999-07-31 18:34 ` Emanuele ALIBERTI
1999-07-03 5:29 Emanuele ALIBERTI
1999-07-03 9:17 ` DJ Delorie
1999-07-31 18:34 ` DJ Delorie
1999-07-31 18:34 ` Emanuele ALIBERTI
1999-06-27 8:57 Emanuele ALIBERTI
1999-06-27 12:24 ` Mumit Khan
1999-06-30 22:10 ` Mumit Khan
1999-06-30 22:10 ` Emanuele ALIBERTI
1999-06-24 10:54 Jim Roy
1999-06-24 11:17 ` Mumit Khan
1999-06-30 22:10 ` Mumit Khan
1999-06-30 22:10 ` Jim Roy
1999-06-24 0:15 Emanuele ALIBERTI
1999-06-24 11:23 ` Mumit Khan
1999-06-30 22:10 ` Mumit Khan
1999-06-30 22:10 ` Emanuele ALIBERTI
1999-06-22 13:42 Suhaib M. Siddiqi
1999-06-30 22:10 ` Suhaib M. Siddiqi
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=199906231500.KAA00598@mercury.xraylith.wisc.edu \
--to=khan@xraylith.wisc.edu \
--cc=cygwin@sourceware.cygnus.com \
--cc=ealiberti@hotmail.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).