PDA

View Full Version : Error 238 Preprocessor Directive Expected ???



MOUNTAIN747
- 29th December 2011, 18:32
I have never encountered this error before. I have gotten this error on two short test programs. The list of compiler error codes located in the Wiki does not give an explanation for this error code. Anyone have an idea what this means? I'm not using a preprocessor nor do I reference any processor other than a 16F873A. ???

MOUNTAIN747
- 29th December 2011, 19:07
Problem found!
While using Typcasting Variables inside of Arrays, a variable name in ASM did not match the variable name in the EXT statement.

Array VAR BYTE[8]
ASM
Dog = Array
Cat# = Array+1
-------
-------
ENDASM
Dog VAR BYTE EXT
Cat VAR BYTE EXT * the # in the ASM Cat# caused error 238

Issue Closed!