compiling and linking programs
linking shared libraries
linking shared libraries
OpenGL is supported on workstations using shared libraries that must be linked with the application program.
When you compile your OpenGL programs, you must link the application with the OpenGL library libGL. Notice that the OpenGL library is dependent on the hp X extensions library (libXext).
An ANSI C compile line will typically look similar to this:
cc
| |||
| To compile your application using ANSI C, you can also use the cc | ||
| command with either of the command line options +Aa or +Ae. | ||
| If you are going to compile your application using HP’s ANSI C++ | ||
| compiler, use the aCC compiler. | ||
| See the HP Graphics Administration Guide for more information on | ||
| compiling. |
|
|
| This table summarizes the shared libraries and X11 directories that are | ||
| linked on the command line example above. | ||
Table | Shared Libraries |
|
|
|
|
|
|
| Library | Description |
|
|
|
|
|
| libGL | OpenGL routines |
|
|
|
|
|
| libX11 | X11 routines |
|
|
|
|
|
| libXext | HP X11 extensions |
|
|
|
|
|
46 | Chapter 4 |