Debugging Memory Problems with MemoryScape
:
Chapter 4 Creating Programs for Memory Debugging
:
Linking with the dbfork Library
:
dbfork and SunOS 5 SPARC
dbfork and SunOS 5 SPARC
Add one of the following command line arguments or options to the command that you use to link your programs:
/opt/totalview/sun5/lib/libdbfork.a
-L/opt/totalview/sun5/lib -ldbfork
For example:
cc -o
program program.c
\
-L/opt/totalview/sun5/lib -ldbfork
As an alternative, you can set the
LD_LIBRARY_PATH
environment variable and omit the
-L
option on the command line:
setenv LD_LIBRARY_PATH /opt/totalview/sun5/lib