Compiling Hp Pex Applications; Compiling Opengl Applications - HP b2600 Administration Manual

Hp b2600: supplementary guide
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

Compiling HP PEX Applications

HP PEXlib is supported on the Series 700 workstations using shared libraries that must be linked with
the application program. Only PEX programs written in C (not FORTRAN or Pascal) are supported.
When you compile your PEXlib programs, you must link the application with the PEXlib library
libPEX5.
____________________________________________________________________________
Note: The PEX library is dependent on the math library.
_____________________________________________________________________________
A compile line will typically appear:
cc program.c -lPEX5 -lXext -lX11 -lm –ldld
For more information on compiling and linking PEXlib programs, see the appropriate chapters in the HP
PEX Implementation and Programming Supplement.

Compiling OpenGL Applications

HP's implementation of OpenGL is supported on workstations with HP VISUALIZE-FX graphics.
To compile a program that does not use the OpenGL utilities, use a makefile that looks like this:
INCDIR= -I/opt/graphics/OpenGL/include
LIBDIR=-L/opt/graphics/OpenGL/lib
LIBS=-lGL -lXext -lX11 -lm -ldld
meow : meow.c
c89 $(INCDIR) $(LIBDIR) -o meow meow.c $(LIBS)
To compile a program that does use the OpenGL utilities, use a makefile that looks like this:
INCDIR= -I/opt/graphics/OpenGL/include
LIBDIR=-L/opt/graphics/OpenGL/lib
LIBS=-lGLU -lGL -lXext -lX11 -lm -ldld
meow : meow.c
c89 $(INCDIR) $(LIBDIR) -o meow meow.c $(LIBS)
Page 21
Graphics Administration Guide for HP-UX 10.20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents