[Pyrex] compile error with FILE variable

Stefan Behnel behnel_ml at gkec.informatik.tu-darmstadt.de
Tue May 2 12:47:50 CEST 2006


Yuan Mang wrote:
> also if I tried to use:
> cdef FILE a
> or
> cdef FILE *a
> it reported Syntax error in C variable declaration

You have to declare it:

cdef extern from "stdio.h":
    ctypedef struct FILE


Stefan



More information about the Pyrex mailing list