A C or C++ program can only be linked in the POSIX shell to form an executable program with the cc
, c11
, c89
and CC
calling commands. A “standalone” link editor, normally found in UNIX systems, does not exist. From the technical viewpoint, linking in the POSIX shell calls the BS2000 link editor and supplies it with the appropriate directives (INCLUDE-
MODULES, RESOLVE-BY-AUTOLINK etc.).
A link run is started if none of the -c
, -E
, -M
, -P
or -y
options are specified (see "Options for selecting compilation phases"), as long as no errors occurred during a prior compilation. By default, the linked program is written as an LLM into an executable POSIX file with the standard name a.out
, in the current directory. The -o
option can be used to specify a different directory and/or file name (see "General options").
No link listings can be generated when linking in the POSIX shell. If errors occur, appropriate error messages are output to stderr
.
The -N binder
option can be used to generate the standard listings of BINDER (see "Options for outputting listings and CIF information").