[Pyrex] incomplete type

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Oct 23 06:45:54 CEST 2003


> cdef extern from "c_header.h":
>     ctypedef struct foo_t:
>         pass
> 
> i get a this error:
> 
> Syntax error in C variable declariation

Hmmm, I thought I had fixed that -- evidently not.
Try just

cdef extern from "c_header.h":
    ctypedef struct foo_t

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list