Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* cc/ar/ld oddities
@ 2007-06-03 19:39 Michael Kraemer
  0 siblings, 0 replies; only message in thread
From: Michael Kraemer @ 2007-06-03 19:39 UTC (permalink / raw)


hello world,

I'm currently compiling some freeware apps on 5.1B with native cc,
and I'm encountering problems which begin to drive me nuts,
since I never saw that before, neither on Tru64, nor on other Unices.
cc compiles OK and the .o's are archived in some libxxx.a
(ar -rv, ar -st). However, when I link (with cc -o) some main program
against libxxx.a, several function entry points remain unresolved.
Checking with ar -w shows, that they are indeed archived.
Inspection of the source text doesn't show anything unusual.
Linking against the original .o's works OK.
So either "ar" puts garbage into .a, or ld can't deal properly
with that .a.
This happens with several distinct projects.
Any ideas ?




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-03 19:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-03 19:39 cc/ar/ld oddities Michael Kraemer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox