I just added #include <math.h> source/src/Cockpit/panel.cxx recompiled and
still the same error.

Seamus

On Thu, 19 Feb 2004, Andy Ross wrote:

> Seamus Thomas Carroll wrote:
> > I have read the discussion about the truncf problem and with the
> > latest cvs checkout i still recieve the error.  The messages subject
> > is: Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx:
> > `truncf' undeclared
> >
> > I did not notice any real solution other than some red hat people had
> > successful compiles and others didnt.
>
> It works for me on Fedora Core 1.  Try adding a:
>
>   #include <math.h>
>
> At the top of panel.cxx and see if this fixes your problem; this is
> the header that the autoconf stuff uses to detect the truncf function.
> The panel.hxx header uses <cmath>, which might not export exactly the
> same symbol set in all cases (maybe...).
>
> If that works, we can either replace the C++ header with the C one, or
> re-write the autoconf test to use <cmath> instead.
>
> Andy
>
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
>

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to