printing float using printf shows 0.00 the program

view story

http://www.linuxquestions.org – I am working in Powerpc board where I am cross compiling simple test example for float Code: #include<stdio.h> #include<float.h> #include<math.h> main() { float i=11.222; printf("%f",i); } and cross compiling it by giving command Code: ppc_4xx-gcc  float.c  -o float_example When I run this on my powerpc board MPC8641 I am getting value as 0.000 I am thinking whether in the compiler command do I have to add something add for float . (HowTos)