Compiling A Compaq Cobol Program On Tru64 Unix - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

Developing Compaq COBOL Programs
1.2 Developing Programs on Tru64 UNIX
Compaq recommends that you not name a Compaq COBOL program ''main.''
If you have a C routine named ''main,'' you can work around this problem by
having the ''main'' routine directly call the Compaq COBOL initialization routine,
cob_init. The cob_init routine interface (in C) is as follows:
void cob_init (

1.2.2 Compiling a Compaq COBOL Program on Tru64 UNIX

Compilation does the following for you:
Detects errors in your program syntax
Displays compiler messages on your terminal screen
Generates machine language instructions from valid source statements
Groups the instructions into an object module for the linker
To compile your program, use the
The COBOL Command Driver
The
cobol
the Compaq COBOL compiler. It accepts a list of command flags and file names
and causes one or more processors (compiler, assembler, or linker) to process each
file.
After the Compaq COBOL compiler processes the appropriate files to create
/* init the RTL */
int argc,
/* argument count */
char **argv,
/* arguments */
char **envp
/* environment variable pointers */ )
command invokes a compiler driver that is the actual user interface to
command.
cobol
ld

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Table of Contents