Hi John,

see attachment. You'll have to change the cinclude path for it to work on your 
machine.

On Monday 25 July 2011, john_perry_usm wrote:
> On Jul 25, 6:46 am, Martin Albrecht <martinralbre...@googlemail.com>
> 
> wrote:
> > You'll need to compile your extension module (i.e. your pyx file) with
> > C++ instead of C. See
> > 
> > http://sagemath.org/doc/developer/coding_in_cython.html#special-pragmas
> 
> From that link, I understood that I need to prepend
> 
>     # clang: C++
> 
> to the file. I get the same errors.
> 
> john

Cheers,
Martin

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://martinralbrecht.wordpress.com/
_jab: martinralbre...@jabber.ccc.de

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
#clang c++
#cinclude /home/malb/Sage/current/local/include/singular
#clib m readline singular givaro gmpxx gmp

from sage.rings.polynomial.multi_polynomial_libsingular cimport 
MPolynomial_libsingular

cpdef MPolynomial_libsingular add(MPolynomial_libsingular a, 
MPolynomial_libsingular b):
    return a+b

Reply via email to