On Wed, Mar 18, 2009 at 10:49 AM, Carl Witty <[email protected]> wrote:
> On Wed, Mar 18, 2009 at 10:22 AM, Stefan Behnel <[email protected]> wrote:
>> I don't have sage to test this, but is this using the latest Cython? I
>> remember that Robert fixed a couple of things regarding header include
>> order, and it might have been after the 0.10 releases.
>
> This would have been with Cython 0.10.3. I'll check this evening to
> see if the problem persists with Cython 0.11, if nobody beats me to
> it.
OK, the problem still occurs with Cython 0.11. I can fix the
ntl_wrap.h problems by adding in the appropriate "cdef extern from
...", so I don't think there's anything for Cython to fix there; but
this problem remains:
sage/finance/fractal.c:536: error: field ‘x’ has incomplete type
And sure enough, 'x' does have incomplete type when I look at
fractal.c -- the type is forward-declared as a struct, but there's
never a definition of the type.
This comes from Sage's polynomial template mechanism, implemented by
Robert Bradshaw and Martin Albrecht -- if only I knew where to get
hold of one of these people :)
Robert, could you take a look? You're probably the best person to
figure out whether this is a bug in Cython or in Sage. To reproduce
the problem, add this line to the top of sage/finance/fractal.pyx:
from sage.rings.polynomial.polynomial_gf2x cimport Polynomial_GF2X
and to get rid of the ntl_wrap errors, add the following lines to the
top of sage/libs/ntl/ntl_GF2_decl.pxd:
cdef extern from "gmp.h":
pass
Carl
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev