delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/26/10:00:21

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

Anders Norlander <anorland AT hem2 DOT passagen DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019