avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] printf( float ) issues using avr-gcc w/ AVR Studio


From: Rolf Magnus
Subject: Re: [avr-chat] printf( float ) issues using avr-gcc w/ AVR Studio
Date: Thu, 31 Aug 2006 12:31:25 +0200
User-agent: KMail/1.9.1

On Thursday 31 August 2006 11:49, Reza Naima wrote:

> So I know that you're supposed to go into the configuration window and
> add the _flt libs to get floating point to work, but it doesn't seem to
> be working.  Besides that, what's odd is that when I add it, the program
> size gets smaller.  If I don't have any libs selected, then printf still
> works somehow (without the float)?  What's going on here?
>
> Here's the command line that avr studio generates :
>
> avr-gcc.exe -mmcu=atmega64  main.o ringbuffer.o usb.o delay.o events.o
> uart.o kw1281.o timer.o    -lprintf_flt -lm  -o usbtest.elf

The printf_flt library gets linked after libc, so the vesion in libc is first 
found and used. Try -Wl,-u,vfprintf -lprintf_flt 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]