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 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?= Subject: Re: AW: Linking Dynamic Libraries To: cygwin AT sources DOT redhat DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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