Linking with HP-UX
Add either the -ldbfork or -ldbfork_64 argument to the command that you use to link your programs. If you are compiling 32-bit code, use one of the following arguments:
• /opt/totalview/lib/hpux11-hppa/libdbfork.a
• -L/opt/totalview/hpux11-hppa/lib -ldbfork
For example:
cc -n32 -o program program.c \
-L/opt/totalview/hpux11-hppa/lib -ldbfork
If you are compiling 64-bit code, use the following arguments:
• /opt/totalview/lib/hpux11-hppa/libdbfork_64.a
• -L/opt/totalview/hpux11-hppa/lib -ldbfork_64
For example:
cc -64 -o program program.c \
-L/opt/totalview/hpux11-hppa/lib \
-ldbfork_64
As an alternative, you can set the LD_LIBRARY_PATH environment variable and omit the -L command-line option. For example:
setenv LD_LIBRARY_PATH \
/opt/totalview/hpux11-hppa/lib