This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]