[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Floating point on Mega32
From: |
E. Weddington |
Subject: |
Re: [avr-gcc-list] Floating point on Mega32 |
Date: |
Mon, 26 Jan 2004 10:31:58 -0700 |
On 26 Jan 2004 at 9:05, Douglas Dotson wrote:
> Greetings!
>
> I am attempting to use floating point on a Mega32.
>
> double x;
> char str [20];
> x = 3.14;
> sprintf (str, "%5.2lf", x);
> usartTransmitString (str);
>
> The result is a ? is displayed.
>
> I', sure it is something simple, but this my first
> time
> using gcc on AVR.
>
Are you sure you're linking in the floating point version of the printf
library?