avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] my alltime favorive compiler error.


From: Joerg Wunsch
Subject: Re: [avr-chat] my alltime favorive compiler error.
Date: Mon, 14 Jan 2008 18:19:06 +0100 (MET)

"Steve Franks" <address@hidden> wrote:

> Interesting.  We are using the floating point versions of vs*f(), so
> I would have to say we are -lm 'ing.  Is the link order important?

Yes, of course.  The linker is processing all its object files and
libraries linearly, as given on the command-line.

> I just looked at a bunch of past makefiles, and I see -lm before
> -lgcc, after, and both before and after.

-lgcc doesn't belong there at all (it is automatically added by the
compiler when it sees fit, and where it sees fit), and -lm should be
the last of the user-supplied libraries.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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