[uClibc] libm from uClibc on mips
Karel Kozlovsky
kozlovsk at centrum.cz
Fri Jun 11 17:37:03 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i need math support on my mips box. When I enabled math support in ucLibc
0.9.19 I can not compile any executable binary. In 0.9.26 I can't compile
anything wich uses math. I tryed to find any solution but I didn't find
anything. Please could anybody tell me what I'm going to look for ?
thanx a lot
- ----
mips-uclibc-gcc rint.c -lm
/tmp/cceknjMs.o: In function `main':
/tmp/cceknjMs.o(.text+0x48): undefined reference to `rint'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dpsub'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dpmul'
/usr/mips-linux-uclibc/lib/libc.so: undefined reference to `dptofp'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dpcmp'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dpdiv'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `litodp'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dpadd'
/usr/mips-linux-uclibc/lib/libm.so: undefined reference to `dptoli'
collect2: ld returned 1 exit status
- ----
rint.c
- ----
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
int main(void) {
double d1, d2;
d1 = 0.6; d2 = rint(d1);
printf("d1 = %f, d2 = %f\n", d1, d2);
return 0;
}
- ----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAye3AI8N29j6EtfwRAtJzAKC+Jr6RINOPZyB6h7v55gRLDYA54gCg60wW
1ntYBZUf5Ou8NrT2qtEezVE=
=g12V
-----END PGP SIGNATURE-----
More information about the uClibc
mailing list