[Pyrex] Pyrex 0.9.9 - Structure with self-reference fails

Peter peter at somborneshetlands.co.uk
Wed Sep 1 10:23:41 CEST 2010


I'm trying to compile python-pxlib (http://github.com/gleber/python-pxlib).

The compile fails at lines 90 and 91 in pxpy.pyx saying pxdoc_t is 
undefined. In fact these lines include pointers to the containing structure:

  86   ctypedef struct pxdoc_t:
  87       char *px_name
  88       pxhead_t *px_head
  89       char *targetencoding
  90       void *(*malloc)(pxdoc_t *p, unsigned int size, char *caller)
  91       void  (*free)(pxdoc_t *p, void *mem)

This used to compile OK in all Pyrex versions up to and including 0.9.8.2

Pete
-- 
Peter Hardman
Breeder of Shetland sheep and cattle



More information about the Pyrex mailing list