Blitz logo

Blitz Support :

From: Creon Levit (creon.levit_at_[hidden])
Date: 2005-05-17 00:42:28


checked out the latest cvs sources, ran autoreconf, configure, then make
lib.

../blitz/mathfunc.h: In static member function `static int
blitz::_bz_blitz_isnan<P_numtype1>::apply(P_numtype1)':
../blitz/mathfunc.h:1555: error: '::isnan' has not been declared
../blitz/funcs.h: In static member function `static int
blitz::Fn_isnan<T_numtype1>::apply(T_numtype1)':
../blitz/funcs.h:587: error: '::isnan' has not been declared
make[1]: *** [globals.lo] Error 1
make: *** [blitz-library] Error 1

Now, gcc definitely has namespaces, and so I know it wasn't the "right"
thing to do, but I got it to build and pass all tests by changing line
138 of compiler.h from:

  #define BZ_IEEEMATHFN_SCOPE(x) ::x

to:

  #define BZ_IEEEMATHFN_SCOPE(x) x