[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Trouble with floating point formatting.
From: |
Douglas Dotson |
Subject: |
Re: [avr-gcc-list] Trouble with floating point formatting. |
Date: |
Fri, 2 Apr 2004 06:11:30 -0800 (PST) |
I beleive so. Here is a snippet from the Makefile:
# Floating point printf version (requires -lm below)
LDFLAGS += -Wl,-u,vfprintf -lprintf_flt
# -lm = math library
LDFLAGS += -lm
Doug
--- Mike Panetta <address@hidden> wrote:
> Are you linking in the floating point version of the
> printf lib?
>
> Mike
>
> On Fri, 2004-04-02 at 00:37, Douglas Dotson wrote:
> > Any idea why his doesn't work?
> >
> > sprintf (buf, "%5.2lf", 3.14);
> >
> > Result is an empty string.
> >
> > Doug
> >
> >
> >
> > _______________________________________________
> > avr-gcc-list mailing list
> > address@hidden
> > http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
>
>
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list
- [avr-gcc-list] Resetting the chip from software to hook the bootloader, Mike van Meeteren, 2004/04/01
- Re: [avr-gcc-list] Resetting the chip from software to hook the bootloader, Geoffrey Wossum, 2004/04/01
- [avr-gcc-list] sprintf field width specifiers?, Douglas Dotson, 2004/04/01
- [avr-gcc-list] Trouble with floating point formatting., Douglas Dotson, 2004/04/02
- Re: [avr-gcc-list] Trouble with floating point formatting., Mike Panetta, 2004/04/02
- Re: [avr-gcc-list] Trouble with floating point formatting.,
Douglas Dotson <=
- [avr-gcc-list] WinAVR 20040404 Released, Colin O'Flynn, 2004/04/02
- [avr-gcc-list] Re: WinAVR 20040404 Released, Volkmar Dierkes, 2004/04/03
- Re: [avr-gcc-list] Re: WinAVR 20040404 Released, E. Weddington, 2004/04/05
- [avr-gcc-list] Trouble with floating point formatting., Douglas Dotson, 2004/04/02