On Tue, Oct 22, 2002 at 12:40:38PM -0700, Terry Lambert wrote:
> Kris Kennaway wrote:
> > > > /usr/src/contrib/gperf/src/bool-array.icc:81: warning: rand() does not produce 
>high-quality random numbers and should not generally be used
> > > > /usr/obj/usr/src/i386/usr/lib/libstdc++.so: undefined reference to `fabsl'
> > > > *** Error code 1
> > > >
> > > This is because we lack the
> > >
> > > long double fabsl(long double);
> > >
> > > in -lm and <math.h>.
> > 
> > OK, thanks for tracking it down.  This looks like an important
> > omission that should be fixed for 5.0-R.
> 
> 
> Is it?
> 
> What standard defines this thing, which g++ has as a built-in?
> 
> Alternately, the use could avoid adding the "-fno-builtin", and
> the problem would go away.

ISO C99

7.12.7.2 The fabs functions
Synopsis
    #include <math.h>
    double fabs(double x);
    float fabsf(float x);
    long double fabsl(long double x);
Description
    The fabs functions compute the absolute value of a floating-point
    number x.
Returns
    The fabs functions return | x |.

Regards,
Stefan Farfeleder

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to