HP Workstation zx2000 HP OpenGL Implementation Guide for HP-UX 11.X (IPF versi - Page 33
compiling 32-bit and 64-bit applications for OpenGL, OpenGL procedure calls, Shared Libraries, Library
View all HP Workstation zx2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 33 highlights
compiling and linking programs This table summarizes the shared libraries that are linked on the command line example above. Shared Libraries Library Description libGL OpenGL loader library libGLU OpenGL utility library libX11 X11 routines libXext X11 extensions libXhp11 HP X11 extension compiling 32-bit and 64-bit applications for OpenGL Sample 32-bit compile and link: cc -Ae -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -o cube.32 cube.c \ -L/opt/graphics/OpenGL/lib/hpux32 \ -L/usr/lib/hpux32/X11R6 -lGLU -lGL -lXhp11 -lXext -lX11 -lm Sample 64-bit compile and link: cc -Ae +DD64 -I/opt/graphics/OpenGL/include -I/usr/include/X11R6 \ -o cube.64 cube.c -L/opt/graphics/OpenGL/lib/hpux64 \ -L/usr/lib/hpux64/X11R6 -L/usr/lib/hpux64 -L/usr/lib \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm OpenGL procedure calls In order to facilitate maximum performance, the OpenGL library uses a unique procedure calling convention. To get the best performance, you must include the gl.h header file supplied with HP's implementation of OpenGL in any source code that makes OpenGL calls. Any gl.h files from other vendors or other sources will produce reduced performance and may not work correctly. OpenGL implementation guide 4-3