This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to get Libxml2/Libxslt Python Bindings (was Re: [ANNOUNCE]LibXSLT (1.0.27)...)

On Thu, 5 Jun 2003, Jason Tishler wrote:

> Elfyn,
> On Thu, Jun 05, 2003 at 05:45:40AM +0100, Elfyn McBratney wrote:
> > PS- Peter, `mv {cyg,lib}xml2mod.dll' does the trick.
> If maintaining the "cyg" prefix is considered important, then there is
> another solution...

It's not really important to me, but if the DLL is built as cygfoobar the the
init function, IMO, should be initcygfoobar. Also, I can remove that rename'age
in my build scripts now. :-)

> If a Python shared extension module is called "xyzfoo.$SO" (where $SO is
> so, .dll, etc.), then it must export an initialization function called
> "initxyzfoo".  Therefore, cygxml2mod.dll must export "initcygxml2mod"
> not "initlibxml2mod":
> [...]
>     void
> #ifdef __CYGWIN__
>     initcygxml2mod(void)
> #else
>     initlibxml2mod(void)
> #endif /* __CYGWIN__ */
>     {
>         ...
>     }
> And similarly for libxslt.

Thanks Jason!


Elfyn McBratney (
Systems Administrator /

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]