Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 19 Sep 2001 18:29:43 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: [ANN] dllhelpers-0.2.8 available Message-ID: <20010919182943.A18810@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3BA91AB1 DOT 70607 AT ece DOT gatech DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3BA91AB1.70607@ece.gatech.edu> User-Agent: Mutt/1.3.21i Thank you, Chuck, for responding so quickly to this problem. I'm sorry that my recent cygwin/XP/cygheap "solution" essentially caused you some extra work. cgf On Wed, Sep 19, 2001 at 06:22:41PM -0400, Charles Wilson wrote: >I've updated the dllhelpers package at cygutils > >http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/dll-stuff/ > >The new version no longer uses the '--enable-auto-image-base' function >of the linker; it seems to cause problems under cygwin. Instead, >DLL-builders should either > > a) don't specifiy any image base -- just let the linker use its >default of 0x10000000. Thus, all DLLs will have the same image base, >and the windows runtime linker will relocate them when an application >loads them. However, they won't then conflict with the cygwin1.dll >(which is absolutely required). Also, runtime relocation is relatively >inexpensive on windows. > > b) explicitly specify an image base for every DLL you build (be >careful!). -Wl,--image-base=0xXXXXXXXX. > >this is explained in the updated documentation within the dllhelpers >package. > >Also, I've added a "c_and_c++" example, with two DLL's -- one C-based >and one C++based -- which are both used by a single C++ client application. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/