This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Importing a variable from a DLL
- To: Anders Norlander <anorland@hem2.passagen.se>
- Subject: Re: Importing a variable from a DLL
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Thu, 26 Aug 1999 08:51:46 -0500
- cc: Paul Sokolovsky <paul-ml@is.lg.ua>, James Stern <jsternitg@yahoo.com>, cygwin@sourceware.cygnus.com
Anders Norlander <anorland@hem2.passagen.se> writes:
>
> You *can* do this:
> tag imported data with DATA in the .DEF file and dlltool will not
> generate a stub function.
> For example:
> EXPORTS
> foo DATA
>
> will generate ___imp__foo and __imp__foo symbols.
>
> Without DATA dlltool generates ___imp__foo, __imp__foo, and _foo
> symbols.
>
Thanks Anders. I completely forgot that Ian Taylor implemented the DATA
tag last year!
However, the problem of tracking the usages in various headers and marking
them correctly remains the major problem. I remember trying to create DLLs
for Octave, and ran into tons of problems that I just didn't have the
patience to fix.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com