[Top][All Lists]

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

Re: [avr-gcc-list] link problems

From: Andy Warner
Subject: Re: [avr-gcc-list] link problems
Date: Tue, 8 Mar 2005 12:27:13 -0600
User-agent: Mutt/1.2.5i

address@hidden wrote:
> [...]
> However, if the functions are deprecated and not anymore in the library: how
> comes the code compiles? (but does not link..)
> [...]

The compiler assumes that it must be a function provided
by a library. It is only when it links against the library
that the fact that they are missing becomes apparent.
Note: you don't compile the library every time you build
your code, you just extract the bits you use from the library
and join them up with your program.

Exactly the same thing can happen if you accidentally
mistype one of your function names in your source code -
suddenly you have tried to use a function that neither
the compiler or linker can find for you, and the build
will fail.

Andy Warner             Voice: (612) 801-8549   Fax: (208) 575-5634

reply via email to

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