[En-Nut-Discussion] printf problem

qdg at phas.ubc.ca qdg at phas.ubc.ca
Sat May 7 01:45:31 CEST 2005


hi,

I shouldve searched through the archives earlier,
but i found this thread about floats not being enabled,

I tried the solution mentioned in this thread but I would get errors
during compilation
such as

C:/ethernut/nutbuild1/lib\libnutcrt.a(vfprintf.o)(.text+0xe):
In function `vfprintf':
: undefined reference to `_putf'



> hi,
>
> this is really simple but it seems the printf() in avr libc
> doesn't recognize %f or %g...
>
> with something like
>
> printf("the number is %f",myFloat);
>
> it would just print the letter 'f'
>
> ie:
>
> the number is f
>
>
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>




More information about the En-Nut-Discussion mailing list