libmathlib.so: undefined reference to `__fpclassify'
virendra-pathak opened this issue · comments
Hi,
I am trying to compile and run a hello world program using ARM__sin.
However I get "libmathlib.so: undefined reference to `__fpclassify' " error.
Please point out if I am missing something.
hello.c
int main()
{
double x=90.0,y;
y = ARM__sin(x);
return 0;
}
gcc hello.c -L/home/vpathak/arm-libm/build/lib -lmathlib -o hello
/home/vpathak/arm-libm/build/lib/libmathlib.so: undefined reference to `__fpclassify'
/home/vpathak/arm-libm/build/lib/libmathlib.so: undefined reference to `__fpclassifyf'
collect2: error: ld returned 1 exit status
For me, make in optimized-routines was successful. However I skipped 'make check' due to qemu error (as raised in previous issue).
Please help.
with regards,
Virendra Pathak
Hi
Please add -lm library in your option.
gcc hello.c -L/home/vpathak/arm-libm/build/lib -lmathlib -o hello -lm
Best Regards,
Enguerrand Petit