#COMPILER metastatement 

Purpose

Define the compiler for this program.

Syntax

#COMPILER [PBCC | PBWIN] [version] [, [PBCC | PBWIN] [version]] [, ...]

Remarks

The #COMPILER metastatement defines the name, and optionally the version, of the compiler which should be used for this source program. This is particularly valuable if you use both PBCC and PBWIN, since an immediate error 408 (Wrong compiler for this program) will be generated if you mistakenly try to compile it with any other compiler or version.

If the optional version number is included, it must be specified as either the major version only, or major and minor with two decimal digits:

#COMPILER PBCC

#COMPILER PBCC 4

#COMPILER PBCC 4.03

In the first case, compilation with any version of PBCC would be acceptable.  In the second case, compilation with any version of PBCC 4.xx would be acceptable, while in the third case, compilation with any compiler other than PBCC 4.03 would generate the compile-time Error 408 ("Wrong compiler for this program").

If the program is compatible with more than one compiler and/or version, multiple parameters may be listed, each separated by a comma.  In this case, an error is generated only if there is no match with any of the parameters.

#COMPILER PBCC 4, PBCC 5

#COMPILER PBCC 4, PBWIN 8

In the first case, compilation with either PBCC 4 or PBCC 5 is acceptable (hypothetically, as there is no PB/CC 5 at this writing).  In the second case, compilation with either PBCC 4 or PBWIN 8 is acceptable.

See Also

#COMPILE