-----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.

[EMAIL PROTECTED]/tmp : uname -a
FreeBSD localhost.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #54: Sat
Apr 21 03:00:42 KST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/EZ8KERNEL amd64
[EMAIL PROTECTED]/tmp : gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060825
[EMAIL PROTECTED]/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-----

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to