Linking with the dbfork Library
If your program uses the fork() and execve() system calls, and you want to debug the child processes, you need to link programs with the dbfork library.
Compaq Tru64 UNIX
Add one of the following arguments to the command that you use to link your programs:
- /opt/totalview/lib/libdbfork.a
- -L/opt/totalview/lib -ldbfork
For example:
cc -o program program.c -L/opt/totalview/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/lib