Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Thu, 15 Feb 2001 12:13:32 -0500 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: Exporting symbols from a .exe Message-ID: <20010215121332.H3899@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <20010215013211 DOT A2451 AT redhat DOT com> <200102151541 DOT KAA30990 AT envy DOT delorie DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <200102151541.KAA30990@envy.delorie.com>; from dj@delorie.com on Thu, Feb 15, 2001 at 10:41:31AM -0500 On Thu, Feb 15, 2001 at 10:41:31AM -0500, DJ Delorie wrote: >>I know that in a past life I was able to export symbols from a normal >>executable without too much work. > >If you're using "gcc --shared" note that I think the linker disables >all the dll-related code (i.e. exports) when not building a dll. It >shouldn't be hard to re-enable, but you'd have to make it not default >to export-all like it does for dlls. With MSVC you don't have to do anything special. If I try --shared, the executable just doesn't work. A better idea for doing this occurred to me as I was drifting off to sleep last night (and continued to occur to me until around 4AM, grr...) so this is a moot point for me but I am still somewhat curious about if this could be made to work as transparently as msvc/link. cgf