HP j6700 OpenGL Implementation Guide for HP-UX 11.x - Page 50

OpenGL procedure calls, implementation of OpenGL in any source code that makes OpenGL calls.

Page 50 highlights

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

compiling and linking programs
OpenGL procedure calls
Chapter 4
48
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.