[uClibc]Can uClibc be compiled by gcc-2.96?

kjlin kj.lin at viditec-netmedia.com.tw
Mon Sep 10 09:34:43 UTC 2001


Hi,

I updated my gcc from 2.91 to 2.96.
Therefore, i have two libc.a. 
One is made by gcc-2.91 and the other is by gcc-2.96.
But the libc.a made by gcc-2.96 seems not to work fine with floating point.
Here is my simple code:
#include <stdio.h>
int main()
{
        float value=0.5;
        printf("value=%f\n",value);
        return 0;
}

If i link with the libc.a made by gcc-2.91 while compiling the code,
everything is fine.
However, if link with the libc.a made by gcc-2.96, the output is error.
It outputs :
value=0.000...........00 (lots of zero!)

Why does it happen?
Dose uClibc still work fine if it is compiled by gcc-2.96?

Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20010910/daaf5c76/attachment-0001.htm 


More information about the uClibc mailing list