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: Thu, 30 Aug 2001 08:44:55 +0800 From: Chia-liang Kao To: cygwin AT cygwin DOT com Subject: Help: linking a dll which uses runtime symbol on cygwin Message-ID: <20010830084455.A29690@clk.cirx.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline User-Agent: Mutt/1.2.5i --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm porting a program developed on FreeBSD to cygwin and encounter some problems with linking. The problem is mainly about the perl extension. The main program exports some symbol for the plugins written in perl to use (via XS), and invokes the plugins by some function in libperl5_6_1.dll. Sorry that I'm very unfamiliar with win32. I asked several people and digged the mailing list. I somewhat know about the implib/declspec, which seems to exist for some historical issues. I also played with the --auto-import patched ld but in vain. Anyway, to simplify and show the scenario clearly: * A (main program) + links with B (libperl) * C (the plugin glueware) + uses some symbols from both A and B + is loaded by B while A is running on FreeBSD, I just cc -share C.o -o C.so, the unresolved symbols won't make any trouble. So how do I get the C.dll on cygwin? Cheers, CLK --AqsLC8rIMeq19msA 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 iD8DBQE7jYyHk1XldlEkA5YRAtTZAJ48zdLgQ8rgwVcTwNJp+pPqo6kBNgCfQgjj dWj7kfVsGfZhX2RQIZ+1PKs= =wnKs -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--