<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Yuan Mang</b> <<a href="mailto:mangyuan@gmail.com">mangyuan@gmail.com</a>><br>Date: May 2, 2006 12:30 PM<br>
Subject: compile error with FILE variable<br>To: <a href="mailto:pyrex@lists.copyleft.no">pyrex@lists.copyleft.no</a><br><br></span><div style="direction: ltr">Hi,<br><br>I'm having some trouble with FILE variables.<br> when I tried to compile a pyx with the following defs,
<br>cdef extern from 'subopt.h':<br> ctypedef struct SOLUTION:<br> float energy<br> char *structure <br> SOLUTION c_subopt "subopt" (char *sequence, char *constraint, int delta, FILE *p)
<br> int subopt_sorted<br>Pyrexc reported at the position of the * in *p, "expected ')'<br><br>also if I tried to use: <br>cdef FILE a<br>or <br>cdef FILE *a<br>it reported Syntax error in C variable declaration
<br><br>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! <br></div><div style="direction: ltr"><span class="sg"><br>Yuan<br><br><br></span>
</div>