Linking error with __float128 conversions
Hyo geol, Lee
hyogeollee at gmail.com
Fri Apr 20 19:34:45 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello.
I had problem in linking error with __float128 conversion functions. I
am using FreeBSD/amd64 -current and
test code is below.
#include <strings.h>
int
main(void)
{
__float128 a;
long double b;
bzero(&a, sizeof(__float128));
bzero(&b, sizeof(long double));
a = b;
b = a;
return (0);
}
When I build above code, I got linking error. Is this just unsupported
functions or something missing in header
or linking options? Error message is below.
ez8@~/tmp : uname -a
FreeBSD localhost.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #54: Sat
Apr 21 03:00:42 KST 2007
root at localhost.localdomain:/usr/obj/usr/src/sys/EZ8KERNEL amd64
ez8@~/tmp : gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060825
ez8@~/tmp : cc -O0 test_float128.c
/var/tmp//cc9c9baG.o(.text+0x38): In function `main':
: undefined reference to `__extendxftf2'
/var/tmp//cc9c9baG.o(.text+0x5e): In function `main':
: undefined reference to `__trunctfxf2'
Thanks.
HG, Lee.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGKQ+01D7/GiH6QSERCpwuAKDCK7R7Epl/tp+croit8pCOc3BRIQCgwQYm
6Znx4dXOuhZjaXrcE7ywWg8=
=V49A
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list