TMP: Temporary Directory

Tools

Compiler, Assembler, Linker, Debugger, Librarian

Synonym

None

Syntax
  TMP=<directory> 
  
Arguments

<directory>: Directory to be used for temporary files

Default

None

Description

The compiler uses the ANSI function, tmpnam(), to create temporary files. This library function stores the temporary files in the directory specified by the TMP environment variable. If the variable is empty or does not exist, the compiler uses the current directory. Check this variable if you get the error message "Cannot create temporary file".

Note: This is a system level (global) environment variable. It cannot be specified in a default environment file ( default.env).
Example

TMP=C:\TEMP

See also

Current Directory