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 _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
