delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/11/05:29:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001011092829.19377.qmail@web6405.mail.yahoo.com>
Date: Wed, 11 Oct 2000 22:28:29 +1300 (NZDT)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: Re: AW: Linking Dynamic Libraries
To: cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

Ross Smith wrote:
> 
> Charles Wilson wrote:
> >
> > You still need to worry about things like __declspec(dllexport) and
> > __declspec(dllimport).
> 
> What's the point of --export-all-symbols then? I was under the
> impression that it was intended to duplicate the Unix convention,
where
> all external symbols are automatically exported from a .so.
(Actually,
> the help refers to "global" symbols, not "external", but I assumed
that
> just meant that whoever wrote the help didn't know C++.)


If you really want to --export-all in C++, this is a workaround.
Create a def with dlltool:
 dlltool --export-all --output-def foo_.def --dllname foo.dll *.o

Then look at the def file.  Do you still really want to export-all?

To use that def file with ld -shared you need to get rid of the
comments (demangled names) 
cut does the job:
  cut -d ';' -f 1 foo_.def >foo.def

Cheers


_____________________________________________________________________________
http://clubs.yahoo.com.au - Yahoo! Clubs
- Join a club or build your own!

--
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