From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6928 invoked by alias); 17 Nov 2001 19:23:16 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 6893 invoked from network); 17 Nov 2001 19:23:15 -0000 Received: from unknown (HELO mout1.freenet.de) (194.97.50.132) by sourceware.cygnus.com with SMTP; 17 Nov 2001 19:23:15 -0000 Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout1.freenet.de with esmtp (Exim 3.33 #3) id 165B3a-00061Q-00 for cygwin@sources.redhat.com; Sat, 17 Nov 2001 20:23:14 +0100 Received: from b6330.pppool.de ([213.7.99.48] helo=BRAMSCHE) by mx2.freenet.de with smtp (Exim 3.33 #3) id 165B3a-00035i-00 for cygwin@sources.redhat.com; Sat, 17 Nov 2001 20:23:14 +0100 From: "Ralf Habacker" To: "Cygwin" Subject: RE: Linking to commercial dll's Date: Sun, 11 Nov 2001 08:26:00 -0000 Message-ID: <000c01c16f9d$fcf24910$306307d5@BRAMSCHE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <000901c16ee2$05054420$fa6607d5@BRAMSCHE> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-SW-Source: 2001-11/txt/msg00499.txt.bz2 > -----Ursprüngliche Nachricht----- > Von: cygwin-owner@sources.redhat.com > [mailto:cygwin-owner@sources.redhat.com]Im Auftrag von Ralf Habacker > Gesendet am: Freitag, 16. November 2001 22:03 > An: Cygwin > Betreff: RE: Linking to commercial dll's > 1. For a deeply explanation of the windows dll format look at > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwbg > en/html/ms > dn_peeringpe.asp. > > 2. You have to create a ld compatible import library. You can use the tools > impgen and dlltool for doing this. impgen comes from the libtool > package and is > appended to this mail. dlltool is a part of the basic cygwin. > > Here is an example for a dll named 'libxslt.dll': > > 1. compile the tool impgen with the appended source file > > gcc -o impgen impgen.c > cp ./impgen /usr/local/bin > > > 2. create a file with all exported symbols from the dll (it's called 'def' > file). > > impgen libxslt.dll >libxslt.def I should note that there is another tool pexports, which does the same as impgen with the enhancement of exporting data symbols You can found pexports under http://www.is.lg.ua/~paul/devel/binutils.html Regards Ralf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/