Command Reference
cobcc
—COBOL compilation interface.
cobcc
[option
. . .
]filename
. . .
cobcc
is used as an interface shell to the COBOL compiler. It is invoked, by default, when buildclient(1)
or buildserver(1)
is executed with the -C
(COBOL) option. This can be overridden by specifying the ALTCC
environment variable.
The following list indicates the options recognized by cobcc
. To use these options, set the environment variable ALTCFLAGS
to the string of options to be recognized by cobcc
when running buildclient
or buildserver
. Consult your documentation for the COBOL and C compilers to see what effect the various options have.
Note: On a Windows system, the ALTCC
and ALTCFLAGS
environment variables are not applicable and setting them will produce unexpected results. You must compile your application first using a COBOL compiler and then pass the resulting object file to the buildclient(1)
or buildserver(1)
command.
Note that for cobcc
, unlike cc
and cob
, all options must come before any filenames.
This option specifies that the link phase should be suppressed. That is, compilation will be done but an executable program will not be generated.
This option and its argument are passed directly to the COBOL compiler (with no white space separating them).
This option and its argument are passed directly to the COBOL compiler (with one space separating them).
These options are passed through the COBOL compiler to the C compiler, and also cause suppression of the link phase.
This option and its argument are passed through the COBOL compiler to the C compiler. It is used to define macros in C.
Each of these options takes an argument.The option and its argument are passed through the COBOL compiler to the C compiler.
The argument may consist of up to three comma-separated fields. If the first part of the argument is -p
or -0
, it is passed to the C compiler. If it starts with -a
, it is passed to the assembler. If it starts with -l
, it is passed to the loader. If it starts with -C
, it is passed to the COBOL compiler. Otherwise, it is passed through to the C compiler.
The options and their arguments and the filenames are passed to the COBOL compiler with the correct options so that the right information is processed by the COBOL compiler, the C compiler, or the loader. The COBOL compiler name is assumed to be cob
and already in the PATH
.
buildclient(1)
, buildserver(1)