This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: order of arguments on command line when linking
- From: Tom Tromey <tromey at redhat dot com>
- To: "Erik Poupaert" <erik dot poupaert at chello dot be>
- Cc: <java at gcc dot gnu dot org>
- Date: 12 Feb 2003 22:15:01 -0700
- Subject: Re: order of arguments on command line when linking
- References: <POEIJGMGPFPGFHAGKFHACEKFCEAA.erik.poupaert@chello.be>
- Reply-to: tromey at redhat dot com
>>>>> "Erik" == Erik Poupaert <erik.poupaert@chello.be> writes:
Erik> When I change the order of arguments on the command line when
Erik> linking, I may get linking errors, which can be solved by
Erik> changing the order of the arguments.
Erik> Is there a reason for this?
This is how Unix linkers have always worked.
They make one pass through the libraries.
There are various ways to handle this. One is to order things
carefully. Another is to have the linker search the libraries
multiple times; see the ld manual.
Tom