Hmmm, the PIC18EXT.BAS file seems to be missing those.

Add these to that file, or your program ...
Code:
ANSEL	VAR	BYTE EXT
ANSELH	VAR	BYTE EXT