[Buildroot] C double type problem - at91sam9263

Richard Hardy richardh at oakleafconsultancy.com
Mon Aug 4 10:29:38 UTC 2008


Hi Everyone,

I am quite new to using buildroot and embedded linux systems in general.
However, I have managed to use buildroot to get a (nearly) working
system up and running for an at91sam9263 board. (kernel v 2.6.22, uClibc
v 0.9.29)

 

I have one annoying problem though. One of the packages I am compiling
from source uses C's "double" type, and this does not seem to be
behaving as I need it to.

 

I have created a simple example program:

 

...

int main (int argc, char *argv[])

{

double test;

test = 1;

fprintf(stderr, "Test double = %f.\n", test);

}

 

And the output that I see is:

 

Test double = 1000000.

 

 

I guess that this is due to one of the options, somewhere, in either the
Linux Kernel, uClibc or something else, but I don't know how to find out
which one. 

 

Can anyone point me in the right direction of where to look?

 

Thanks for your help,

 

Richard.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/buildroot/attachments/20080804/8b13e62e/attachment-0002.htm 


More information about the buildroot mailing list