Here’s a technical write-up for downloading , the GNU-based compiler for PIC24, dsPIC30, and dsPIC33 microcontrollers.
Once you have downloaded the MPLAB C30 V3.31 compiler, follow these steps to install and set it up: mplab c30 v3 31 download
C30-c99 --version