[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] param passing float
hi all,
I've benn tring to figure out this weird symptoms. I've been testing
with John's latest toolchain and Xilinx's EDK 6.2. both prints:
gcc version 2.95.3-4 Xilinx EDK 6.2.1 Build EDK_Gm.12.3
I'm also using latest 2.4 and dist.
now what I can't compile is this:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char buf[1024];
sprintf(buf, "%.*g\n\n", 15, 1.0);
printf("%s\n", buf);
gcvt(1.0, 15, buf);
printf("%s\n", buf);
return 0;
}
if I comment out gcvt() line, it seems like it compiles fine and work
as I expected.
what am I missing?
regards,
--
yashi
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/