delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/15/20:04:44

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
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: <39496E2A.E3330B40@ece.gatech.edu>
Date: Thu, 15 Jun 2000 20:00:42 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Carl Thompson <cet AT carlthompson DOT net>
CC: Cygwin List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Can't build a DLL using gcc
References: <852568FF DOT 007476F8 DOT 00 AT D51MTA04 DOT pok DOT ibm DOT com> <39495C96 DOT D14912FA AT carlthompson DOT net> <39496405 DOT 2B9FD3A AT ece DOT gatech DOT edu> <39496A88 DOT A9531612 AT carlthompson DOT net>

Carl Thompson wrote:
> 
> Charles Wilson wrote:
> 
> > ...
> 
> > You probably *should* use def files if (a) you're developing a library
> > that other folks might want to use, without recompiling their
> > application code, and (b) you want to support those apps that
> > 'import-by-number' from the dll. With the no-def-file method, you're
> > never guaranteed that the name/numbers will be the same from build to
> > build.
> 
> I understand what you are saying, but if developers are using my headers and
> my import library to link with my DLL, wouldn't they always be importing by
> name?  I don't know anything about the import by number method.  Why is it
> ever used?  How is it used?  More info, please...

I'm not really clear on the details -- I was reading the
libpng-developers mailing list and they were discussing the relative
merits of def-files, harvesting function names, 'export ordinals' and
'implicit' (by-number) linking. See
ftp://swrinde.nde.swri.edu/pub/png-group/archives/png-implement.0005

> 
> Anyway, I hope at least the information in my message about the alternate
> way to build DLLs helped you.

Sure -- more information is always good.

--Chuck

--
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