This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dummy problem when linking


Hi Daniel,

I believe the order in the command line is important.  The symbols are
"unresolved" because when the linker sees the symbol, nothing requires it so
it doesn't include it, then LATER a file needs the symbol... but it's not a
two-pass link, and the symbol isn't seen again.  Thus, unresolved.

Order is important.

Put the unresolved items BEFORE, and the thing that supplies the unresolved
items AFTER.

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]