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

compiling 32-bit and 64-bit applications for, OpenGL

Page 49 highlights

compiling and linking programs compiling 32-bit and 64-bit applications for OpenGL compiling 32-bit and 64-bit applications for OpenGL The following sample compile and link lines may help you to build your application once it has been ported to take advantage of 64-bit capabilities. Sample 32-bit compile and link: cc -g -Aa -D_hpUX_SOURCE -z \ -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -o cube.32 cube.c \ -L/opt/graphics/OpenGL/lib \ -L/usr/lib/X11R6 -ldld -lGLU -lGL \ -lXhp11 -lXext -lX11 -lm Sample 64-bit compile and link (for 11.x only): cc -g -Aa +DA2.0W -D_hpUX_SOURCE -z \ -I/opt/graphics/OpenGL/include \ -I/usr/include/X11R6 -o cube.64 cube.c \ -L/opt/graphics/OpenGL/lib/pa20_64 \ -L/usr/lib/X11R6/pa20_64 -L/usr/lib/pa20_64 \ -L/usr/lib -ldld \ -lGLU -lGL -lXhp11 -lXext -lX11 -lm Chapter 4 47

  • 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
compiling 32-bit and 64-bit applications for OpenGL
Chapter 4
47
compiling 32-bit and 64-bit applications for
OpenGL
The following sample compile and link lines may help you to build your
application once it has been ported to take advantage of 64-bit
capabilities.
Sample 32-bit compile and link:
cc -g -Aa -D_<ABBR>hp</ABBR>UX_SOURCE -z \
-I/opt/graphics/OpenGL/include \
-I/usr/include/X11R6 -o cube.32 cube.c \
-L/opt/graphics/OpenGL/lib \
-L/usr/lib/X11R6 -ldld -lGLU -lGL \
-lXhp11 -lXext -lX11 -lm
Sample 64-bit compile and link (for 11.x only):
cc -g -Aa +DA2.0W -D_hpUX_SOURCE -z \
-I/opt/graphics/OpenGL/include \
-I/usr/include/X11R6 -o cube.64 cube.c \
-L/opt/graphics/OpenGL/lib/pa20_64 \
-L/usr/lib/X11R6/pa20_64 -L/usr/lib/pa20_64 \
-L/usr/lib -ldld \
-lGLU -lGL -lXhp11 -lXext -lX11 -lm