Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 cc: Paul Sokolovsky , James Stern , 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 Anders Norlander 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