[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Another 2.97 question (linking with floating point)
From: |
Gunnar Henne |
Subject: |
Re: [avr-gcc-list] Another 2.97 question (linking with floating point) |
Date: |
Sat Jan 20 06:15:04 2001 |
Hello Larry,
Larry Barello schrieb:
>
> Why does Gunnar's distribution link with "libgcc" instead of "libm" in my
> application?
I think, its the normal behaviour to link only against libc.
> My code is not finding fplib that should be in libm.a I am
> not sure where to start looking.
The answer ist quite simple, and nearly every new Linux-gcc programmer
has had problems with ist:
To link libm.a you have to use the -lm (link math) switch to gcc.
I have just tried and stepped trough the sin library-code using
AvrStudio. :-)
(Nice new toy ;-)
Here are excerpts from my map file: (maybe
> /cygdrive/c/AVRGCC/BIN/../lib/gcc-lib/avr/2.97/../../../../avr/bin/ld.exe:
> region text is full (NewBot.elf section .text)
^^^^
This does not look good.
How do you generate the map output?
Greetings
Gunnar
--
Gunnar Henne Email: address@hidden
oTRIs GmbH & Co. KG Tel. : 0231 / 10616-21
Landgrafenstr. 153 Fax. : 0231 / 10615-44
44139 Dortmund