Hi,
make fails when i try to build libcppunit with the following:
TestAssert.cpp: In function 'void CppUnit::assertDoubleEquals(double,
double, double, CppUnit::SourceLine, const std::string&)':
TestAssert.cpp:25: error: 'isfinite' was not declared in this scope
make[2]: *** [TestAssert.lo] Error 1
make[2]: Leaving directory `/root/libcppunit-dev/cppunit-1.12.0/src/cppunit'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/libcppunit-dev/cppunit-1.12.0/src'
make: *** [all-recursive] Error 1
The offending file is
1 #if HAVE_CMATH
2 # include <cmath>
3 #else
4 # include <math.h>
5 #endif
6
7 #include <cppunit/TestAssert.h>
8
9
10 CPPUNIT_NS_BEGIN
11
12
13 void
14 assertDoubleEquals( double expected,
15 double actual,
16 double delta,
17 SourceLine sourceLine,
18 const std::string &message )
19 {
20 AdditionalMessage msg( "Delta : " +
21 assertion_traits<double>::toString(delta) );
22 msg.addDetail( AdditionalMessage(message) );
23
24 bool equal;
25 if ( isfinite(expected) && isfinite(actual) )
26 equal = fabs( expected - actual ) <= delta;
27 else
[snip]
How do i fix this issue? Googleing pointed me to
http://forums.sun.com/thread.jspa?threadID=5272328&tstart=0
~Anil
_______________________________________________
gnusol-devel mailing list
[email protected]
http://lists.sonic.net/mailman/listinfo/gnusol-devel