This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

darwin gcc3.3 isinf


Hi. I'm trying to compile a package on a Mac OSX Darwin 7.7.0, with gcc 3.3, and I get the following error:

../../include/rheolef/csr.h:292: instantiated from `bool csr<T>::any_element_is_inf_or_nan() const [with T = Float]'
csr.cc:545: instantiated from here
../../include/rheolef/macros.h:42: error: `isinf' undeclared (first use this
function)
../../include/rheolef/macros.h:42: error: (Each undeclared identifier is
reported only once for each function it appears in.)
make[3]: *** [csr.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1


I notice that problems with isinf and isnan seem to be common for applications on this platform, but I don't know what to do to fix it. I can't just change the code to #include math.h instead of cmath, because it is quite a complicated build. Can I modify something in the configure script to make this substitution, or is there some other standard way to work around this problem?


Thanks lots,
Becky
----------------------------------------------------------------------------------------------
Rebecca Bendick, Ph.D.
Bullard Laboratories
University of Cambridge
Madingley Road
CAMBRIDGE
CB3 0EZ
United Kingdom<x-tad-bigger>

bendick@esc.cam.ac.uk</x-tad-bigger>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]