delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/02/16:09:13

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: <199911022108.PAA07798@mercury.xraylith.wisc.edu>
To: Steve Jorgensen <steve AT khoral DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: More DLL and global var problems
In-Reply-To: Your message of "Tue, 02 Nov 1999 13:27:55 MST."
<199911022027 DOT NAA23973 AT benson>
Date: Tue, 02 Nov 1999 15:08:18 -0600
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

Steve Jorgensen <steve AT khoral DOT com> writes:
> 
> 	Does anybody remember what the fix was for the X11 port?  I know
> 	it must have been fixed, because our base Manager widgets subclasses
> 	off an Xt Constraint widget, and the compiler doesn't have
> 	any problem with using the global variable from the Xt dll.

Hey Sergey, where are you?????

> 	If I have to, we'll leave our compiled X libraries static.

That's what I do for our releases. I don't fancy mucking with a large body
of code. I had considered the scheme that Donn Terry implemented in Interix 
(which is now owned by Microsoft) -- SVR4/ELF-like shared library support 
by playing with IAT after loading the DLL, but before the user gets control
of it. I don't remember the details, but it's messy, and way beyond of my 
budget to hire anyone, so we let it go in favor of static. 

> 	Also, I'm using the GNU pro 2.9-cygwin-990830 gcc compiler
> 	that comes with the 1.0 CD, because it's supposed to produce
> 	better binaries.  Would it make any difference to use the gcc 2.95
> 	compiler available off the net?  I'd be willing to switch if it
> 	fixes this problem.

I believe all the changes are in Cygwin 1.0 compiler, so you should be
fine. There are some differences in the front-end handling (gcc-2.95 +
my patches add some features to the front-end that are specific to x86
win32 ports), but the code generator in Cygwin 1.0 is far superior.

For you, switching doesn't offer any advantages. 

btw, can you send me the preprocessed output of the file that is choking?
-save-temps option to gcc saves a .i file, which is what I'd like to take
a look at.

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