compiling and linking programs

OpenGL procedure calls

OpenGL procedure calls

In order to facilitate maximum performance, the OpenGL library uses a unique procedure calling convention. This convention is supported only by the HP C and C++ compilers.

If you get a large number of “Undefined pragma” messages (for example, Undefined pragma ìhp_PLT_CALLî ignored) when compiling an OpenGL application, you are most likely using a compiler that does not support this calling convention. To get an appropriate HP C or C++ compiler, you will need to contact your local HP Sales Representative.

You must also include the gl.h header file supplied with HP’s implementation of OpenGL in any source code that makes OpenGL calls. If you have unresolved OpenGL symbols (for example, “Unsatisfied symbol glVertex3f”) when linking your application, make sure that the correct gl.h file is being included in all your source files. Any gl.h files from other vendors or other sources will not work with HP’s implementation of OpenGL.

48

Chapter 4