[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ld fails to link if library order is reversed
From: |
Nilmoni Deb |
Subject: |
ld fails to link if library order is reversed |
Date: |
Mon, 7 Mar 2005 15:06:45 -0500 (EST) |
Lets say I am running the following command
gcc z.o -lX -lY -o z
and libX.a depends on a function that is defined in libY.a then the order
of linking appears to be important. While the previous command works, the
next one (with order reversed) will fail:
gcc z.o -lY -lX -o z
This problem has been observed with binutils version 2.10.91. I would
think that ld should look back when resolving dependencies.
thanks
- Nil
- ld fails to link if library order is reversed,
Nilmoni Deb <=