* /usr/bin/ld output
@ 1999-08-13 4:00 skettle
1999-08-13 4:00 ` Joe Mario
0 siblings, 1 reply; 2+ messages in thread
From: skettle @ 1999-08-13 4:00 UTC (permalink / raw)
When I try to link when building a binary I get unresolved references:
eg.
/usr/bin/ld:
Unresolved:
foo(int)
bar(int*,int*)
Under other linkers more information is given - like what .o file(s)
actually contains the references to foo(int) and bar(int*,int*). This
makes it much easier to fix unresolved problems - otherwise you have to
do something like go through using nm to track the problem down.
Is there any flag to ld that turns will prints out this type of info ?
Would not dec have added this flag - at the very least increase the
efficiency of their own developers.
Thanks - Steve.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: /usr/bin/ld output
1999-08-13 4:00 /usr/bin/ld output skettle
@ 1999-08-13 4:00 ` Joe Mario
0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1999-08-13 4:00 UTC (permalink / raw)
skettle@my-deja.com wrote:
> When I try to link when building a binary I get unresolved references:
> eg.
>
> /usr/bin/ld:
> Unresolved:
> foo(int)
> bar(int*,int*)
> ...
> Is there any flag to ld that turns will prints out this type of info ?
See the linker's manpage "man ld" for the -y<sym> flag. That flag
is position dependent so it needs to appear early in the link line so the
linker knows to search for the symbol <sym> in subsequent objects and
libraries.
Joe Mario
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-08-13 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-13 4:00 /usr/bin/ld output skettle
1999-08-13 4:00 ` Joe Mario
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox