LIB Environment Variable

The LIB environment variable contains the name of one or more directories that are used if WL32 does not find a library file in the current directory. The LIB environment variable is identical to the OBJ environment variable except WL32 searches for the library files with the LIB environment variable instead of searching for object module files.

For example, assume your current directory is C:\ASMWORK. The following command lines DISPLAY.OBJ and DRIVER.OBJ with SA.LIB.

WL32 DISPLAY DRIVER,,,SA

Without a LIB environment variable, if SA.LIB is not in the C:\ASMWORK directory, WL32 issues a DOS error 2 (file not found) error. To specify that library files may also be found in the \SA or \LIB directories, set the LIB environment variable as follows:

SET LIB=\SA;\LIB

In the example above, if LIB is not found in the C:\ASMWORK directory, WL32 searches the current drive’s \SA and \LIB directories for the library file. Of course, you may also place a drive specifier, such as C:\SA in the LIB environment variable setting to tell WL32 to search a particular drive’s directory for library files.

NOTE: If a library is explicitly given a path specification in the link file or command line, then WL32 will only search for the library file in the path specified. The LIB environment variable directories are searched only when a file is listed without an associated directory and WL32 does not find the file in the current directory.

TEMP and TMP Environment Variables

The TEMP and TMP environment variables specify the directory and drive where a swap file is built by CauseWay’s virtual memory manager (VMM) when operating under DOS. Windows and OS/2 provide their own memory management functions which override CauseWay’s use of the TEMP and TMP environment variables. The path indicated by TEMP will be used under DOS if both TEMP and TMP environment variables exist. Both settings are superseded by the

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page