Scroll to the downloads section and select the compiler for your OS (Windows, macOS, or Linux).
Visit the MPLAB XC Compilers page on the Microchip website. xc.h library download
Even after a successful "xc.h library download" and installation, you may encounter errors. Here are the top fixes. Downloading and Using the XC