Implicit invocation via qpc

When qpc is called without the -c command-line option, as in invocation (B), above, it first compiles all the specified Prolog files into QOF and then invokes qld as follows:

     % qld [-W] [-D] [-v] [-o output-file] -d qof-files object-files
     

When qld is called by qpc, it is called in the verbose mode (-v), with the following additional options:

-W (Windows only) determines that qld should build a "windowed" executable, which runs in its own window, as opposed to a console-based one, which runs in a command prompt window. The properties of the Windows component of an executable built with -W can be controlled with resource files and the environment variable CONSOLE; see too-too-qld.

-D determines that qld is to be linked with the Development Kernel rather than the Runtime Kernel. In either case two kernel files, one QOF and one object file, must be linked in addition to the application files. (See the above figure.)

-o specifies the name of the executable file that is to be the final product; defaults to a.out.

-d tells qld to link in any additional files on which any of the specified QOF files depends. See sap-srs-dep for more details on file dependencies.

qof-files is a list of QOF files, P1.qof ,..., Pn.qof, the output of the qpc call.

object-files is a list of object files built by compiling your foreign-language files with the appropriate compiler(s). These may include foreign libraries (e.g. qpc -lX11).

In addition to the above arguments, qpc also passes to qld appropriate -f, -F and -L options if any non-default file search paths or library directories have been specified. The -f, -F and -L options have the same meaning for qld as they do for qpc; they are only meaningful when the -d option is specified, and they tell qld where to look for file specifications. See sap-srs-fsp for information on how qld makes use of file search paths and library directories.