Thanks!
I'm using a combination AVR Freaks version with avrgcc128 beta 2 that
works fine for me. However the AVR Freaks uses 2 makefiles with a line to
add any other libraries. You're right in that I had to move the library to
the local project; I didn't know about that switch to look it up in the
compiler's library path.
When migrating to AVR GCC from another compiler (like I have
recently), how / where is one supposed to find out that the standard C
math routines are in a seperate library file? I applaud AVR Freaks for
trying to make the compiler easy to install and use (it worked for me at
any rate), but a little more documentation would help.
Anyway, thanks for the additional info!
Eric
-------Original Message-------
Date: Thursday, July
25, 2002 11:14:02 AM
Subject: Re:
[avr-gcc-list] strange behaviour with ceil()
"E. Weddington" <address@hidden> wrote:
>
Add the libm.a library to the files you want to link together.
The
usual way for adding a library is to specify "-lm" at the end of your
compiler command line that performs the linkage step.
But arguably,
for the AVR that has only static linkage, there's not much difference
in it to specifying libm.a directly except that specifying it directly
requires either the full pathname to the file or the file being in the
current directory, while -lm will look it up in the compiler's library
path. (On architectures that offer dynamic linkage, there's much more
difference between both.)
-- J"org Wunsch Unix support
engineer address@hidden http://www.interface-systems.de/~j/ avr-gcc-list
at http://avr1.org . |