Are you using PICBasicPro from MeLabs or someone elses compiler?

I ask this because...

Declare CCP1_PIN PORTC.2

DECLARE is not a PICBasicPro statement. Actually neither is XTAL or ALL_DIGITAL = TRUE, so methinks you're on the wrong forum...