delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/13/19:34:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42D5A56F.537E6A89@dessent.net>
Date: Wed, 13 Jul 2005 16:36:15 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: strtoumax could not be located in...cygwin1.dll
References: <SERRANOwLmmv6KMgHnG0000051c AT SERRANO DOT CAM DOT ARTIMI DOT COM>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Dave Korn wrote:

> > It sounds like you didn't update your libcygwin.a .
> 
>   Ah.  So you mean that forwarders only end up as import stubs in the .a,
> not as exports from the .dll itself?

I think this is what the ld manual is hinting at at the end of the
section "direct linking to a dll":
<http://sourceware.org/binutils/docs-2.16/ld/WIN32.html>

"Sometimes it is necessary to include pure static objects within the
import library (which otherwise contains only bfd's for indirection
symbols that point to the exports of a dll). Again, the import lib for
the cygwin kernel makes use of this ability, and it is not possible to
do this without an import lib."

On an unrelated note, I had always thought that direct linking to a dll
took *more* resources during link compared to using an import library,
but apparently this is backwards.  I guess it pays to RTFM.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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