The reason it fails to compile is due to the config lines beginning with the @ sign. Change it to the format
@ __CONFIG _INTRC_OSC_CLKOUT & _WDT_OFF & _MCLRE_OFF & _CP_OFF
and it compiles OK. This is due to using either PBP or MPSAM as the compiler.
Bookmarks