build error on solaris

  • jason pepas

    jason pepas - 2008-06-09


    I'm building ccpunit 1.12.1 on a solaris 8 box using gcc 4.2.2, and I get the following error:

    g++ -DHAVE_CONFIG_H -I. -I../../config -I../../include -I../../include -g -O2
    -MT TestAssert.lo -MD -MP -MF .deps/TestAssert.Tpo -c TestAssert.cpp  -fPIC
    -DPIC -o .libs/TestAssert.o
    In file included from TestAssert.cpp:2:
    ../../include/cppunit/portability/FloatingPoint.h: In function 'int
    ../../include/cppunit/portability/FloatingPoint.h:43: error: 'finite' was not
    declared in this scope
    make[2]: *** [TestAssert.lo] Error 1
    make[2]: Leaving directory
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory
    make: *** [all-recursive] Error 1

    any ideas?

    I have built cppunit successfully on a linux box using gcc-4.2.2.


    • Justin Brunelle

      Justin Brunelle - 2009-03-04

      I get the same error. Any ideas on a fix?

    • zhang wei

      zhang wei - 2009-04-14

      Hi, I just encounter it on solaris 9.

      open "./include/cppunit/portability/FloatingPoint.h",

      add a line "#include <ieeefp.h>" after "#include <math.h>".

      try it, if not ok try "man finite", you can see
      the head filewith "finite" definition, include the file to "FloatingPoint.h".


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks