Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: John Doe <doe@no.spam.com>
Subject: debugging user libraries
Date: 1997/04/28	[thread overview]
Message-ID: <33648ECA.3ABA320E@no.spam.com> (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 *



                 reply	other threads:[~1997-04-28  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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