public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Bjorn R. Jensen" <bjensen@fastmail.fm>
To: "Naveen Malik" <maliknaveen@hotmail.com>, gcc-help@gcc.gnu.org
Subject: Re: LINKING ORDER
Date: Thu, 03 Oct 2002 01:40:00 -0000	[thread overview]
Message-ID: <20021003084035.1BFB32FD3A@server3.fastmail.fm> (raw)

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

             reply	other threads:[~2002-10-03  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03  1:40 Bjorn R. Jensen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-02 20:31 Naveen Malik
2002-10-03 13:07 ` Eljay Love-Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021003084035.1BFB32FD3A@server3.fastmail.fm \
    --to=bjensen@fastmail.fm \
    --cc=gcc-help@gcc.gnu.org \
    --cc=maliknaveen@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).