This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: LINKING ORDER
- From: "Bjorn R. Jensen" <bjensen at fastmail dot fm>
- To: "Naveen Malik" <maliknaveen at hotmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 3 Oct 2002 08:40:35 UT
- Subject: Re: LINKING ORDER
Hi Naveen,
The linker goes through the object files in the specified order
looking for unresolved symbols, all other symbols are ignored, even
if the symbols are needed later. This applies to symbols defined in
libraries as well.
If this was not done, the linker would have to keep track of huge
numbers of symbols most likely not needed at all....
Yours sincerely,
Bjorn
On Thu, 03 Oct 2002 03:31:16 +0000, "Naveen Malik"
<maliknaveen@hotmail.com> said:
> Hi Everybody,
>
> I have to compile and link 5 C files.
>
> Let us assume that the five files are A, B, C, D and E.
>
> Now the problem is does it really matters as how I give their linking
> order
> say A to E or E to A or any other combination. And if yes, then how?
>
> Please guide me.
>
> Regards
>
> Naveen Malik
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>