Hello,

Amit Gupta wrote:

> It occurs to me, there should be some script or program that gives you
> one *working* order of library linking, and error's out if there is
> cyclic dependencies. Would be gald, if you can point me to such tool/
> script.
> 
> Input:> set of n libraries
> output:> one correct linking order for the input set.
> 
> I guess, the script can ignore undefined symbols, if the library set
> is incomplete, as that is a *real* problem.

I think you don't need this, see the --start-group and --end-group
options to ld. In very complicated situations that script, if it
existed, could produce linking orders that might allow faster linking,
though.

g++ .... -Wl,--start-group -labc -lbcd -lcde -Wl,--end-group

Bernd Strieder

_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to