Using the code from post #1 with PBP 2.60, the only error I get is ...
Symbol not previously defined (WRITE)

If I add the line ...
DEFINE WRITE_USED 1

Then it compiles without error.

To find where the problem is, open the
c:\program files\mechanique\mcs\test_average.LST file with notepad.

Search for error[111].
The line immediately following the error should indicate where the problem is.
<br>