> -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag von Ralf Habacker > Gesendet am: Freitag, 16. November 2001 22:03 > An: Cygwin > Betreff: RE: Linking to commercial dll's <snip>
> 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/