[GCC-XML] cmath issues

lak24 at drexel.edu lak24 at drexel.edu
Fri May 12 12:17:38 EDT 2006


I get the following error while running gccxml on an object that uses the cmath library:

/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3/cmath: In function `float
   std::acos(float)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3/cmath:103: error: `
   __builtin_acosf' undeclared (first use this function)
/usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include/g++-v3/cmath:103: error: (Each
   undeclared identifier is reported only once for each function it appears
   in.)
.... continued for all trig functions....

I am running gcc 3.4.5 and gccxml 0.6.0.

The header file looks like:

#ifndef SOMEOBJECT
#define SOMEOBJECT
#include <cmath>
using namespace std;
class someObject {
        public:
                someObject();
                ~someObject();
                float sine(); // uses cmath sin
        private:
                double somevalue;
};
#endif

I noticed a similar problem on the kitware mailing lists, not sure if its related.

Thanks.

-Louis
 



More information about the gccxml mailing list