Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>,
	<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <199908261351.IAA16654@mercury.xraylith.wisc.edu>
To: Anders Norlander <anorland@hem2.passagen.se>
cc: Paul Sokolovsky <paul-ml@is.lg.ua>, James Stern <jsternitg@yahoo.com>,
        cygwin@sourceware.cygnus.com
Subject: Re: Importing a variable from a DLL 
In-Reply-To: Your message of "Thu, 26 Aug 1999 13:46:40 +0200."
             <37C52920.CC9AFD3F@hem2.passagen.se> 
Date: Thu, 26 Aug 1999 08:51:46 -0500
From: Mumit Khan <khan@xraylith.wisc.EDU>

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

