g2.mm. When a G2 process starts, it searches for the module map file as follows:
-module-map option in the command line to start G2, G2 searches for the file at the fully qualified file pathname that is specified as an argument to the option.
-module-map option in the command line to start G2, G2 checks whether a G2_MODULE_MAP environment variable (or VMS logical) is defined. If such an environment variable exists, G2 attempts to open g2.mm under the directory path assigned to that variable.
g2.mm file using Steps 1 and 2, G2 attempts to open g2.mm located in the directory that was current when you launched G2.
-module-map command-line option is described in module-map.
Adding Entries to the Module Map File
Use any text editor to create a module map file. It should contain only ASCII text.
| Use this delimiter: | For this platform: |
|---|---|
\
|
Windows
|
/
|
UNIX
|
]
|
VMS
|
vehicle-root \usr\jcm\kbs\modules\vh.kb
vehicle-classes \usr\dev\kbs\shared\
vehicle-root using the file \usr\jcm\kbs\modules\vh.kb. The second line specifies that G2 must load, merge, or save the module named vehicle-classes using a KB file of the same name (vehicle-classes.kb) under the directory \usr\dev\kbs\shared\. A module map file that describes two KBs that reside on a VMS platform could contain:
vehicle-root MY$DISK:[my-g2-mods]vh.kb
vehicle-classes DEV$DISK:[shared-mods]
vehicle-root using the file MY$DISK:[my-g2-mods]vh.kb. The second line directs G2 to load, merge, or save the module named vehicle-classes using a KB file of the same name (vehicle-classes.kb) under the directory DEV$DISK:[shared-mods].