[Pyrex] compile error with FILE variable
Yuan Mang
mangyuan at gmail.com
Tue May 2 12:34:08 CEST 2006
---------- Forwarded message ----------
From: Yuan Mang <mangyuan at gmail.com>
Date: May 2, 2006 12:30 PM
Subject: compile error with FILE variable
To: pyrex at lists.copyleft.no
Hi,
I'm having some trouble with FILE variables.
when I tried to compile a pyx with the following defs,
cdef extern from 'subopt.h':
ctypedef struct SOLUTION:
float energy
char *structure
SOLUTION c_subopt "subopt" (char *sequence, char *constraint, int delta,
FILE *p)
int subopt_sorted
Pyrexc reported at the position of the * in *p, "expected ')'
also if I tried to use:
cdef FILE a
or
cdef FILE *a
it reported Syntax error in C variable declaration
I didn't find much info about how to treat the FILE variables in the
overview or mailing list. Can someone give a hand? Thanks a lot!
Yuan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20060502/f681d2a4/attachment.html
More information about the Pyrex
mailing list