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: Mon, 15 Oct 2001 17:23:19 +0800 From: Chia-liang Kao To: Robert Collins Cc: cygwin AT cygwin DOT com, cwilson AT ece DOT gatech DOT edu Subject: Re: Help: linking a dll which uses runtime symbol on cygwin Message-ID: <20011015172319.A95375@clk.cirx.org> References: <20010830084455 DOT A29690 AT clk DOT cirx DOT org> <999415945 DOT 16271 DOT 1 DOT camel AT lifelesswks> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <999415945.16271.1.camel@lifelesswks>; from robert.collins@itdomain.com.au on Sun, Sep 02, 2001 at 05:32:23PM +1000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rob, I still can't get things work, after numerous trial and error.=20 Could you be so kind to modify the c example in dllhelpers-0.2.9 and make cdll.c to call a function from usedll.c to demonstrate this? On Sun, Sep 02, 2001 at 05:32:23PM +1000, Robert Collins wrote: > On 30 Aug 2001 08:44:55 +0800, Chia-liang Kao wrote: > > Anyway, to simplify and show the scenario clearly: > >=20 > > * A (main program) > > + links with B (libperl) > >=20 > > * C (the plugin glueware) > > + uses some symbols from both A and B > > + is loaded by B while A is running > >=20 > > on FreeBSD, I just cc -share C.o -o C.so, the unresolved symbols won't > > make any trouble. > >=20 > > So how do I get the C.dll on cygwin? >=20 > Create an export library for A, and ensure that it exports the symbols. >=20 > PE - the win32 loader format - doesn't automatically export all the > symbols, and unresolved symbols at link time are not allowed. Cheers, CLK --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7yqsHk1XldlEkA5YRAk+rAJwOuVADAkyxquynTaaz+bR3BDpD7wCePL3H 5XvHsdsmPLwl2IU0txtNKVM= =Mxu7 -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--