FTAM/9000 Programmer's Guide
46 Chapter 2
Using HP FTAM/9000
Generating FTAM Programs
Generating FTAM Programs
Before using FTAM, you must include header files and link your
programs with the libmapftam.a and libmap.a libraries. Another
important library is the lint(1) library used for detecting bugs.
Header Files
In your *.c files (source files), you must have the following lines at the
beginning of your program to include the appropriate header files.
#include %</opt/ftam/include/map.h>
#include %</opt/ftam/include/mapftam.h>
libmapftam.a Library
To access FTAM services, link your application programs with the
libmapftam.a library. Compile your programs by executing the following
command. For information on using the cc command, refer to cc(1) in the
HP-UX Reference Pages.
lint(1) Library
A lint(1) library is available for use with the HP-UX programmatic
interface to FTAM. Using lint(1) saves time by eliminating costly
debugging effort. Although lint(1) does not detect all bugs, it can find
some that general testing may not detect. To invoke lint(1), enter the
following command.
$ lint -ux filename.c -lmapftam -lmap
The -ux flags are optional; they remove some unnecessary errors about
variables that are used, but not defined or some errors that are defined,
but not used. For more information, refer to lint(1) in the HP-UX
Reference Pages.
cc [options] -o %<executable> %<files to compile> -lmapftam -lmap -lntl [additional
libraries]