avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Problems with float numbers


From: Jose Javier Segura Juarez
Subject: Re: [avr-gcc-list] Problems with float numbers
Date: Wed, 29 Jun 2005 16:39:54 +0200
User-agent: Internet Messaging Program (IMP) 3.2.6

Joerg, i agree with you but i get the following when use -Wl, -u,vfprintf
-lprintf_flt:

-------- begin --------
avr-g++ (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling: flashled2.c
avr-g++ -c -mmcu=atmega128 -I.  -I/opt/cdk4avr/avr/include  -I../../cmc216L04 -g
-Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=flashled2.lst  
-Wp,-M,-MP,-MT,flashled2.o,-MF,.dep/flashled2.o.d flashled2.c -o flashled2.o

Linking: flashled2.elf
avr-g++ -mmcu=atmega128 -I.  -I/opt/cdk4avr/avr/include  -I../../cmc216L04 -g
-Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall
-Wstrict-prototypes -Wa,-adhlns=flashled2.o  
-Wp,-M,-MP,-MT,flashled2.o,-MF,.dep/flashled2.elf.d flashled2.o   --output
flashled2.elf -minit-stack=__stack 
-Wl,-Tdata=0x800100,--defsym=__heap_end=0x8010FF -lm -Wl,-u,vfprintf
-lprintf_flt -L../../cmc216L04 -lcmc216L04
/opt/cdk4avr/lib/gcc-lib/avr/3.3.2/../../../../avr/lib/avr5/libm.a(fixsfsi.o)(.text.fplib+0x0):
In function `__fixsfsi':
../../../../libm/fplib/fixsfsi.S:42: multiple definition of `__fixsfsi'
/opt/cdk4avr/lib/gcc-lib/avr/3.3.2/avr5/libgcc.a(_sf_to_si.o)(.text+0x0):/mnt/store/0/00sourceforge/RPM/BUILD/gcc-3.3.2/cdk4avr/gcc/fp-bit.c:1364:
first defined here
make: *** [flashled2.elf] Error 1

I linked math lib too

Regards









reply via email to

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