fgl2p

The fgl2p tool compiles source files and assembles p-code modules into a .42r program or a .42x library.

Syntax

To create a library:
fgl2p [options] -o outfile.42x { pcmod.42m | srcfile.4gl } [...]
To create a program:
fgl2p [options] -o outfile.42r { pcmod.42m | srcfile.4gl | library.42x } [...]
  1. options are described in Table 1.
  2. outfile.42r is the name of the program to be created.
  3. outfile.42x is the name of the library to be created.
  4. pcmod.42m is a p-code module compiled with fglcomp.
  5. source.4gl is a program source file.
  6. library.42x is the name of a library to be linked.

Options

Table 1. fgl2p options
Option Description
-V Display version information for the tool.
-h Displays options for the tool. Short help.
-o outfile.ext Output file specification, where ext can be 42r for a program or 42x for a library.
otheroption Other options are passed to the linker or compiler.

Usage

The fgl2p command line tool can compile .4gl source files and link .42m p-code modules together, to create a .42x library or a .42r program file.
fgl2p -o myprog.42r module1.4gl module2.42m lib1.42x

This tool is provided for convenience, in order to create programs or libraries in one command line. It uses the fglcomp and the fgllink tools to compile and link modules together.