_asm TBLRDPOSTINC _endasm,
Conventions for inline assembly in PIC microcontrollers are different based on the compiler. It's very likely you're working with code that expects a different compiler. Try replacing this:


  _asm TBLRDPOSTINC _endasm


with this:


  asm(TBLRDPOSTINC)