Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <39860032.5CFA060B@ece.gatech.edu>
Date: Mon, 31 Jul 2000 18:39:46 -0400
From: Charles Wilson <cwilson@ece.gatech.edu>
X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: mlx@san.rr.com
CC: cygwin@sourceware.cygnus.com
Subject: Re: Upgrading from b20.1 to 1.1.x  - now my static linking fails !
References: <200007311649.AA08997@mlx.com>
		<200007311800.OAA23243@envy.delorie.com>
		<200007311832.AA09069@mlx.com>
		<200007311852.OAA26794@envy.delorie.com>
		<200007312201.AA09210@mlx.com> <3985FA17.7E725ED9@ece.gatech.edu> <200007312219.AA09223@mlx.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Okay, sorry -- I didn't connect your message with the other ones. I
can't offer any cogent advice -- except "it works for me". zlib, libpng,
libjpeg, libjbig, libtiff -- all contain dll and static lib, I built
both dynamically-linked and statically-linked executables for each
package, and they all worked -- linking with an import lib, and with the
static lib, and directly to the dll using ld.exe's new ability to
generate a "virtual" import lib on-the-fly.

So, it seems you've stumbled on an obscure bug -- I'd concentrate on
what you're doing that is *different* from normal dll usage -- like that
funky stdcall wrapper dllinit thingy... BTW, did you use
--enable-stdcall-fixup and/or --add-stdcall-alias as linker options when
building your dll/import library?

--Chuck


MarketLogix wrote:
> 
> Thanks,
> 
> But let me resummarize what I've got so far ...
> 
> 1st scenario:
> 
> gcc-2.95.2-2 + latest/binutils = good .dll / .exe static link failures .
> 
> 2nd scenario:
> 
> gcc-2.95.2-2 + release/binutils = bad .dll / .exe static links fine .
> 
> If interested, please see earlier messages of this thread ...
> 
> Thanks again,
> 
> bisk
> 
> Begin forwarded message:

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

