Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

missing math function



After nearbyint, I think a few more math functions need importing.

I just tried to compile pkgsrc/lang/R, and discovered

% cat foo.c
#include <math.h>

int main()
{
        long double ret, x, a;

        x = 3.1;
        a = 2.4;
        ret = powl(x, a);

        return 0;
}
% gcc -o foo foo.c -Wall -lm
/var/tmp//cceyW6q6.o: In function `main':
foo.c:(.text+0x54): undefined reference to `powl'

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index