[Pyrex] C++ wrapping tutorial
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Nov 6 23:47:47 CET 2007
David McNab wrote:
> I've posted on the wiki a short tutorial on using Pyrex/Cython to wrap
> C++ classes:
Regarding "Access to C-only functions", you say that it's
necessary to write C++ wrappers to call the C functions.
I don't see why that should be necessary as long as the
declarations are in an "extern from" block and the header
file encloses them in 'extern "C"'. Then the C++ compiler
will know that they are C functions and generate the
appropriate linkage for calls to them.
--
Greg
More information about the Pyrex
mailing list