fglcomp
The fglcomp tool compiles .4gl source files into .42m p-code modules.
Syntax
fglcomp [options] module[.4gl] [...]
- options are described in Table 1.
- module.4gl is the program source file. The .4gl extension is optional.
- fglcomp can take several .4gl sources files as arguments.
Options
Option | Description |
---|---|
-V or --version |
Display version information for the tool. |
-h or --help |
Display options for the tool. Short help. |
-i { mbcs } |
Display information. -i mbcs displays
information about multibyte character set settings. See Multibyte character sets (MBCS). |
-S |
Dump Static SQL statements found in the source to stdout. |
-m |
Extract %"string" localized strings from source to stdout. |
-M |
Write error messages to standard output instead of creating a .err error file. |
-W warning-argument |
Produce warning messages.
The warning argument can be used as follows:
The -W option also supports the negative form of arguments by using the
no- prefix as in: no-return , no-unused ,
no-stdsql . You might need to use these negative forms in order to disable some
warning when using the -W all option:
Switches will be enabled/disabled in the order of appearance in the command line. |
-E |
Preprocess only. See Source preprocessor for more details. |
--format [ options
] |
Reformat the .4gl module source with
specified options. Here options can be one of:
|
--timestamp |
Add compilation timestamp to build information in 42m header. See 42m module information. |
--omit-source-name |
Omit the source file name in the build information of the 42m header. See 42m module information. |
--tag=string |
Write a custom string in the build information of the 42m header. See 42m module information. |
-p option |
Preprocessing control, where option can be one of:
|
--qualify-imports |
Parse the provided source file to add module prefixes to all
imported symbols. See Qualifying imports for details. |
-I path |
Provides a single path to search for include files. See Source preprocessor for more details. |
-D
ident[=value] |
Defines the macro 'ident' with an optional value (default is 1). See Source preprocessor for more details. |
-U
ident |
Undefines the macro 'ident'. See Source preprocessor for more details. |
--build-doc |
Generate source documentation. |
--doc-private |
When using the --build-doc option,
include PRIVATE symbols to the documentation. |
--build-rdd |
While compiling, generate the
module.rdd Report Data Definition file (of
REPORT routines). |
--verbose |
Print detailed compilation information. |
--implicit=type |
Specify whether or not to compile imported modules, if the
.42m does not exist, or if the .4gl source is more recent
as the .42m. Here type can be one of:
|
-r or --resolve-calls |
Throw an error on references to undeclared functions.
Each external function must be made known to the compiler by |
--java-option=option |
Passes Java runtime options when initializing the JNI interface. See Java Interface for more details. |
Usage
fglcomp customers.4gl
If a compilation error occurs, the compiler generates an error file with an
.err extension. The error file contains the original source code with
error messages. Use the option -M
to display the error messages to standard
error instead of producing the .err file.