CPFIRST environment variable
Use the CPFIRST environment variable to specify the default compilation order for all source files in your programming environment.
- Run the C preprocessor
- Run the preprocessor
- Run the C compiler and linker
To use a nondefault compilation order for a specific program, you can either give the program source file a .ecp extension, run the -cp option with the esql command on a program source file with a .ec extension, or set CPFIRST.
Set CPFIRST to TRUE
(uppercase
only) to run the C preprocessor before the preprocessor
on all source
files in your environment, irrespective of whether the -cp option
is passed to the esql command or the source files have the .ec or
the .ecp extension.
TRUE
, you can set CPFIRST to FALSE
.
On UNIX™ systems that support
the C shell, the following command has the same effect:unsetenv CPFIRST