OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P
Write the CUP in an ANSI C compliant C language. Compile the CUP's C source program to create an object file. Use the cc command for TP1/Client/W.
Table 3-2 shows the compiler options that must be set.
Table 3-2 Required compiler options (in HI-UX/WE2, HP-UX, and non-Windows environments)
TP1/Client version | Option | Meaning |
---|---|---|
TP1/Client/W | -Aa | Compile as ANSI C. |
cc -c -I/usr/include -Aa cupmain.c cc -c -I/usr/include -Aa cupfnc1.c cc -c -I/usr/include -Aa cupfnc2.c
xlc_r -c cupmain.c xlc_r -c cupfunc1.c xlc_r -c cupfunc2.c
The CUP executable file is created by linking the files shown below. Use the cc command for TP1/Client/W.
Example command lines for linking the above files are shown below.
cc -o example cupmain.o cupfnc1.o cupfnc2.o -L/usr/lib -lclt
xlc_r -o example cupmain.o cupfnc1.o cupfnc2.o -L/usr/lib -lclt
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.