Environment Variables
Previous Topic  Next Topic 

The TE Compiler relies on a number of environment variables which define the paths to function files, include files, definition files or library files.      If any of these environment variables paths are not specified then the compiler will just look in the current working directory for all files of this type (unless a full path was specified in the TCL.EXE command line for any of them).       


Note that once a path is specified by an environment variable then the current working directory is not automatically searched by the compiler unless it is included explicitly in the path variable (E.g. as ".\")


All path variables can specify mulitple paths by providing a list of directories separated by semi-colons,  for example:


set FUNCDIR=\myproject\common;.\;d:\utilities\functions


Below are the path variables that are used by the compiler:



FUNCDIR

Specifies the directories where the compiler will search for all function (.FUN) files.

INCDIR

Specifies the directories where the compler will search for all include files (see $include Compiler Directive)

TELDIR

Specifies the directories where the compiler will search for TE library (.TEL) files

DEFDIR

Specifies the directories where the compiler will search for DLL definition (.DEF) files. (see Loading DLLs and .DEF files)


In addition to the above path definition variables there are two other environment variables shown below:


TELLIBS

Defines a semi-colon separated list of TE library (.TEL) files to load (equivalent to the -L compiler option)

TEDLLS

Defines a semi-colon separated list of DLL or .DEF files to load (equivalent to the -r compiler option)


These last two environment variables are the equivalent to swetting either the -L or the -r compiler options.