Hi,

I saw previous posts about cimporting sage modules, and I can get some of 
those examples to work.  

However, in cython from the sage notebook I'm trying:
%cython
from sage.symbolic.expression cimport Expression

What I get is:
..._notebook_sagenb_home_admin_169_code_sage8_spyx_0.c:255:24: fatal error: 
ginac_wrap.h: No such file or directory
 #include "ginac_wrap.h"
                        ^
compilation terminated.
error: command 'gcc' failed with exit status 1

If I make my own setup.py and include the appropriate ginac_wrap.h file, I 
eventually get errors such as:

... local/include/pynac/basic.h:28:33: fatal error: cstddef: No such file 
or directory

 #include <cstddef> // for size_t

                                 ^

compilation terminated.

error: command 'gcc' failed with exit status 1


I've tried including the cstddef file, but to no such luck.


Is there a better way to import a sage module?


Thanks,
Jon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to