* debugging user libraries
@ 1997-04-28 4:00 John Doe
0 siblings, 0 replies; only message in thread
From: John Doe @ 1997-04-28 4:00 UTC (permalink / raw)
Hardware is AlphaStation 600, OS is DEC Unix 3.2C,
compiler DEC C compiler, loader DEC ld version 3.11
I compile a bunch of C files and stuff them into an archive,
like so:
cc -O5 foo1.c
cc -O5 foo2.c
cc -O5 foo3.c
ar csr libfoo.a foo1.o foo2.o foo3.o
Then I compile another program, like so:
cc -O5 bar1.c bar2.c bar3.c -L. -lfoo
No problem. But the new program doesn't work, so I want
to debug it. I recompile:
cc -g bar1.c bar2.c bar3.c -L. -lfoo
but, alas, ld now complains at linking time:
ld:
Unresolved:
_OtsMove
_OtsDivide64Unsigned
If I do ``nm libfoo.a'' I find these names.
Is there a simple way to get the compiler and loader to let me
debug the program that doesn't work? I know the problems
aren't in libfoo.a, and I'm willing to not be able to use the
debugger there, just like I can't use it for math library calls. . .
I suppose I can recompile the library routines with the -g flag, but
surely there's a better solution. Any help appreciated.
Christopher Grayce
UCI Department of Chemistry
cgrayce@uci.edu
* email header is anti-spam - to write directly use email in sig *
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-04-28 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-28 4:00 debugging user libraries John Doe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox