Chapter 2: Compiling Your Application
This chapter provides information for compiling your application with either archived or shared libraries for the following Application Programming Interfaces (APIs): Starbase,
The actual pathnames of the conceptual (<italicized and
Compiling Starbase Applications
Compiling with Shared Libraries
The compiler programs (cc, f77, and pc) link with Starbase shared libraries by default. Starbase will explicitly load the appropriate device driver library at run time when you compile and link with the shared library <common> /lib/libhpgfx.sl, or use the
Examples
Assuming you are using ksh(1), to compile and link a C program for use with the shared library driver, use the forms below.
ccexample.c
For FORTRAN:
fort77 example.f
For Pascal:
pc example.p
Compiling with Archive Libraries
You can link the appropriate library, for your specific device driver, to a program by using any one of the following:
•The path name
•An appropriate relative path name; or
•The
Page 14 | Graphics Administration Guide for |