ANN: Pyrex 0.3.4

Fredrik Lundh fredrik at pythonware.com
Fri Jul 19 04:21:30 EDT 2002


Matthias Baas wrote:

> I thought you only need that if you import the dll through an
> import library which Python doesn't do.

nope.  without dllexport (or a DEF file or an exports directive to
the linker), the module's init function won't be exported.  if it's
not exported, Python's PYD loader refuses to load the module.

the correct solution (in 2.2 and earlier) is to use the DL_EXPORT
macro, which is set to the right thing for whatever platform you're
using.

</F>





More information about the Python-list mailing list