sprintf does exist in the kernel libc, what the real problem is you are converting floating point values around which isn't getting linked in (that function is part of libgcc it extends 32bit floats to doubles). However the kernel libc doesn't support float formatting anyway so I wouldn't bother continuing on that vein.
TyRaNiD wrote:sprintf does exist in the kernel libc, what the real problem is you are converting floating point values around which isn't getting linked in (that function is part of libgcc it extends 32bit floats to doubles). However the kernel libc doesn't support float formatting anyway so I wouldn't bother continuing on that vein.
So I need to use doubles? Or what is the fix for this...
Well not exactly, you could as suggested try and copy xprintf.c from the pspsdk libc and try and link it directly into your application, alternatively you could do what I did in psplink and write a simple float->string function and then only use sprintf to fomat a string not a float, it is admittedly more hassle but it might be your only way.
Incidently the functions it is missing for float conversion should be getting linked in, are you linking your app with gcc or going to ld directly ?