ERRORFILE: Error Filename Specification

Tools

Compiler, Assembler, Linker, or Burner

Synonym

None

Syntax
  ERRORFILE=<filename>   
Arguments

<filename>: filename with possible format specifiers

Description

The ERRORFILE environment variable specifies the name for the error file.

Possible format specifiers are:

%n: Substitute with the filename, without the path.

%p: Substitute with the path of the source file.

%f: Substitute with the full filename, i.e., with the path and name (the same as %p%n).

A notification box displays in the event of an improper error filename.

Examples
  ERRORFILE=MyErrors.err   

Writes all errors into the MyErrors.err file in the current directory.

  ERRORFILE=\tmp\errors   

Writes all errors into the errors file in the \tmp directory.

  ERRORFILE=%f.err  

Writes all errors into a file with the same name as the source file, but with the *.err extension, into the same directory as the source file. Using this format, compiling a file named test.c in the sources directory ( \sources\test.c) generates an error list file named test.err in the sources directory ( \sources\test.err).

  ERRORFILE=\dir1\%n.err   

Writes all errors into a file in the dir1 directory. Compiling a source file named test.c generates an error list file named \dir1\test.err.

  ERRORFILE=%p\errors.txt   

Writes all errors into a text file in the same directory as the compiled file. Compiling a source file named \dir1\dir2\test.c generates an error list file with the name \dir1\dir2\errors.txt.

Unless you set the ERRORFILE environment variable, the compiler writes errors to the EDOUT file in the current directory.