You'll find the information you need in the compiler's manual: MPLAB C18 C COMPILER USER'S GUIDE.
From page 37 of the user's guide (sorry for the screenshot, but I can't copy&paste from the pdf):
If you can change the compiler: using interrupts is easier in the Microchip XC8 or HI-TECH PICC compilers.