undefined reference to 'sinf', 'cosf', 'logf'
Carmelo AMOROSO
carmelo.amoroso at st.com
Fri Mar 14 08:40:42 UTC 2008
YD wrote:
> Hello all,
>
> I am compiling the QT embedded 4.3.3 on my platform which is based on MIPS 32.
> My Uclibc is 0.9.27 , GCC Version is 3.4
>
>
> But the compile error occurs,
>
> undefined reference to 'sinf'
> undefined reference to 'cosf'
> undefined reference to 'logf'
>
> I do not know how to solve this problem. please give me the hepl.
>
> Thanks in advance,
>
You need to link libm too (-lm)
Please note that 0.9.27 is too old, I suggest to update uClibc (at least
0.9.28).
Carmelo
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
>
>
More information about the uClibc
mailing list