Previous Topic

Next Topic

Precompiling, Compiling, and Linking Multiple Files with esqlc

The most straightforward use of esql is to accept the various default values of both the precompiler and compiler. These defaults result in the precompiler automatically invoking the compiler, which in turn invokes the linker, generating an executable in one step.

Consider a report-generating application with source code contained in two esql source files, rep1.pc and rep2.pc. The following example accepts all the precompiler defaults but specifies the -o C compiler option to specify the name of the output executable file as report.