FGLLDPATH
Defines the search paths to load program modules.
The FGLLDPATH environment variable defines the search paths to load C extensions and .42m modules.
A program can be composed by several p-code modules (.42m) and can use C extensions. When linking and when executing the program, the runtime system must known where to search for these modules. Use the FGLLDPATH environment variable, to define the search paths to load C extensions and p-code modules.
When using packages, FGLLDPATH can define the top-dir to find modules from the package paths. See PACKAGE for more details.
FGLLDPATH must contain a list of paths, separated by the operating system specific path separator. The path separator is ":" on UNIX™ platforms and ";" on Windows® platforms.
The directories are searched in the following order:
- The current working directory.
- The directory where the program file resides (the .42m
module containing
MAIN
or the .42r program file). - A path defined in the FGLLDPATH environment variable.
- The $FGLDIR/lib directory.