On 01/23/2012 08:12 AM, Dima Pasechnik wrote:
missing ccosh probably is a deficiency of libc/libm on your system.
Can you compile/link

#include <math.h>
#include <complex.h>
int main() { double complex x=ccosh(1.); }

on your system, and what extra libs does it need?

On my system, complex cosh is the cosh function, overloaded to accept complex arguments. I don't have complex.h for C++ - rather I would use

#include <cmath>
#include <complex>

I had a similar problem with sage-main/sage/symbolic/pynac_cc.h, which was looking for functions like logl. I had to change logl to log overloaded to work with long double (just like this file does for __CYGWIN__).

This is a definitely C++ construction, not C.

My system does have complex.h (which I think is the C99 version of C). The only non-trivial functions it has is csqrt.

(I found this out by grepping the include directories.)

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to