This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Dummy problem when linking
- From: John Love-Jensen <eljay at adobe dot com>
- To: daniel rangel <dr_moreira at yahoo dot com dot br>, gcc-help at gcc dot gnu dot org
- Date: Wed, 18 Aug 2004 06:15:49 -0500
- Subject: 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