[Pyrex] [Cython-dev] 'cdef public' functions with a C++ compiler

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Dec 11 22:37:35 CET 2007


Robert Bradshaw wrote:

> On Dec 10, 2007, at 3:48 PM, Matthew Woodcraft wrote:
 >
> > It seems that Cython is putting __PYX_EXTERN_C around the  
> > definition of
> > the function but not around the declaration.

You need to put the declaration inside an "extern from"
block. Then Pyrex will trust the linkage declared by
the .h file and not declare any of its own.

--
Greg



More information about the Pyrex mailing list