[En-Nut-Discussion] Error while linking to floting point crtlibrary (libnutcrtf.a)

Marc Wetzel mwse at gmx.de
Tue Jun 22 13:21:25 CEST 2004


Hi Ole,

AFAIK you need to manually link libm into it / -lm /


Greetings,
/Marc

> -----Original Message-----
> From: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-
> bounces at egnite.de] On Behalf Of Ole Reinhardt
> Sent: Tuesday, June 22, 2004 1:10 PM
> To: Ethernut User Chat (English)
> Subject: [En-Nut-Discussion] Error while linking to floting point
> crtlibrary (libnutcrtf.a)
> 
> Hi all,
> 
> I tried to link my application to libnutcrtf.a and got the following
> error:
> 
> avr-gcc main.o m-can.o -mmcu=atmega128
> -Wl,--defsym=main=0,-Map=mastercontroller.map,--cref
> -L../../lib/gcc/atmega128  ../../lib/gcc/atmega128/nutinit.o -lnutdev
> -lnutnet -lnutpro -lnutos -lnutdev -lnutcrtf -o mastercontroller.elf
> ../../lib/gcc/atmega128/libnutcrtf.a(putff.o)(.text+0x5ba): In function
> `_putf':: undefined reference to `dtostrf'
> ../../lib/gcc/atmega128/libnutcrtf.a(putff.o)(.text+0x5ca): In function
> `_putf':: undefined reference to `dtostre'
> make: *** [mastercontroller.elf] Fehler 1
> 
> Does anybody know what's going wrong? I'm using avr-gcc 3.4.0 and the
> current cvs version of NutOS.
> 
> Regards,
> 
> Ole
> 
> --
> kernel concepts    Tel: +49-271-771091-14
> Dreisbachstr. 24   Fax: +49-271-771091-19
> D-57250 Netphen    E+ : +49-177-7420433
> --
> 
> 
> _______________________________________________
> 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