Trying to get to grips with MPComplex in cython with no success. I get
a compile error on trying cimport. This simple script in the
notebook:
%cython
import sage.rings.complex_mpc
cimport sage.rings.complex_mpc
cdef test():
pass
Results in:
creating build
creating build/temp.linux-x86_64-2.6
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -O3 -Wall -Wstrict-
prototypes -fPIC -I/home/dad/sage-4.6/local/include/csage/ -I/home/dad/
sage-4.6/local/include/ -I/home/dad/sage-4.6/local/include/python2.6/ -
I/home/dad/sage-4.6/local/lib/python2.6/site-packages/numpy/core/
include -I/home/dad/sage-4.6/devel/sage/sage/ext/ -I/home/dad/sage-4.6/
devel/sage/ -I/home/dad/sage-4.6/devel/sage/sage/gsl/ -I/home/
dad/.sage/sage_notebook.sagenb/home/admin/23/code -I/home/dad/sage-4.6/
local/include/python2.6 -c
_home_dad__sage_sage_notebook_sagenb_home_admin_23_code_sage122_spyx_0.c
-o build/temp.linux-x86_64-2.6/
_home_dad__sage_sage_notebook_sagenb_home_admin_23_code_sage122_spyx_0.o
-w -O2
_home_dad__sage_sage_notebook_sagenb_home_admin_23_code_sage122_spyx_0.c:
601: error: field ‘__pyx_base’ has incomplete type
_home_dad__sage_sage_notebook_sagenb_home_admin_23_code_sage122_spyx_0.c:
968: error: field ‘__pyx_base’ has incomplete type
error: command 'gcc' failed with exit status 1
What do I need to do to get it to compile correctly?
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org