order of arguments on command line when linking

Tom Tromey tromey@redhat.com
Thu Feb 13 05:25:00 GMT 2003

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


More information about the Java mailing list