From: Rolf M. <ma...@ma...> - 1998-10-22 12:16:55
|
I just installed egcs 1.1b and blitz 0.4.2, and I got a very surprising error with the example files: ./indirect.cpp:120: call of overloaded `pow2 (double &)' is ambiguous /usr/include/math.h:218: candidates are: pow2(double) ../blitz/mathf2.h:247: pow2(complex<long double>) ../blitz/mathf2.h:246: pow2(complex<double>) ../blitz/mathf2.h:245: pow2(complex<float>) ../blitz/mathf2.h:242: pow2(long double) ../blitz/mathf2.h:241: pow2(double) ../blitz/mathf2.h:240: pow2(float) ../blitz/mathf2.h:239: pow2(int) ./indirect.cpp:120: call of overloaded `pow2 (double)' is ambiguous /usr/include/math.h:218: candidates are: pow2(double) ../blitz/mathf2.h:247: pow2(complex<long double>) ../blitz/mathf2.h:246: pow2(complex<double>) ../blitz/mathf2.h:245: pow2(complex<float>) ../blitz/mathf2.h:242: pow2(long double) ../blitz/mathf2.h:241: pow2(double) ../blitz/mathf2.h:240: pow2(float) ../blitz/mathf2.h:239: pow2(int) The problematic line looks completely innocent to me: double jdist2 = pow2(radius) - pow2(i-centre_i); Is this a problem of egcs or of blitz? Rolf Mantel --------------------- blitz-support list -------------------------------- * To subscribe/unsubscribe: mail to maj...@oo..., with "subscribe blitz-support" or "unsubscribe blitz-support" in the body of the message * Blitz++ web page: http://oonumerics.org/blitz/ |