| United States-English |
|
|
|
![]() |
Graphics Administration Guide: HP 9000 Workstations and Servers > Chapter 3 Compiling Your Application Compiling Starbase Applications |
|
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 -lhpgfx option. This loading occurs at gopen(3G) time. Assuming you are using ksh(1), to compile and link a C program for use with the shared library driver, use the forms below.
For FORTRAN:
For Pascal:
You can link the appropriate library, for your specific device driver, to a program by using any one of the following:
By default, the linker program ld(1) looks for a shared library driver first and then the archive library driver if a shared library was not found. By using "-Wl,-a,archive" (or exporting the LDOPTS variable), the -l option will refer only to archive drivers. As of HP-UX 9.05, archive libraries utilize functionality that is included in libXext.a. Because the archive library libhpgfx1.a references functionality in libXext.a, it is necessary to explicitly link libXext.a with your program. Otherwise, the linker will have undefined references. Assuming you are using ksh(1), to compile and link a C program for use with this driver, use the forms below. The "-l:libdld.sl" below specifies the dynamic loader, which is available only in shared-library form.
For FORTRAN, use:
For Pascal, use:
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||