[Pyrex] How to use C functions in many Pyrex files?
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Apr 6 02:36:59 CEST 2006
Tomasz Primke wrote:
> What have I to do to access the C_function from another Pyrex file?
The cimport mechanism doesn't currently handle
C functions, sorry.
Depending on your platform, it might be possible
to declare it public in one module, treat it as an
external C function in the other and dynamically
link the second module against the first.
Another way would be to wrap in in a PyCObject,
and import that from the other module and unwrap
it.
--
Greg
More information about the Pyrex
mailing list