Debugging Memory Problems with MemoryScape™ : Chapter 4 Creating Programs for Memory Debugging : Linking with the dbfork Library : dbfork and Linux or Mac OS X
dbfork and Linux or Mac OS X
Add one of the following arguments or command-line options to the command that you use to link your programs:
/usr/totalview/platform/lib/libdbfork.a
-L/usr/totalview/platform/lib -ldbfork
or
-L/usr/totalview/platform/lib -ldbfork_64
where platform is one of the following: darwin-x86, linux-x86, linux-x86-64, linux-ia64, or linux-power.
In general, 32-bit programs use libdbfork.a, and 64-bit programs use libdbfork_64.a. Of course, if your architecture doesn’t support 32-bit programs, the option won’t work.
For example:
cc -o program program.c \
-L/usr/totalview/linux-x86/lib -ldbfork
However, linux-ia64 uses libdbfork for 64-bit programs.