oups, i think i didn't check the right datasheet...

something is weird in the CCP1_REG and in CCP1_BIT declaration... So try to add the following defines

Code:
DEFINE CCP1_REG GPIO 'Hpwm 1 pin port
DEFINE CCP1_BIT 2 'Hpwm 1 pin bit
EDIT: OUPS again... Bruce beat me. So now, what are those errors ??? Which version are you using?