Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: HP FTAM/9000 Programmer's Guide > Chapter 2 Using HP FTAM/9000

Generating FTAM Programs

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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.

cc [options] -o %<executable> %<files to compile> -lmapftam -lmap -lntl [additional 
libraries]

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.