Totalview® for HPC Reference Guide : PART IV Platforms and Operating Systems : Chapter 9 Platforms and Compilers : Linking with the dbfork Library : Linux or Mac OS X
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-power, linux-powerle, or linux‑arm64.
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