Please see the relevant compiler category below for information about the errors, referring to missing peripheral libraries.
MPLAB® XC8 Compiler:
The PIC18 peripheral libraries, associated header files and documentation are no longer shipped with the newer compiler versions. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.
If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page; and will need to be installed on top of the compiler installation.
Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the compiler page: http://www.microchip.com/mplab/compilers
For new code development, we recommended you use the MCC (Microchip Code Configurator). MCC can be used to generate routines that perform similar tasks to those supplied by the peripheral library. For a list of supported devices, refer to the release notes on the MCC page, under the Documentation tab. MCC is available as an MPLAB X IDE plugin and can be installed from the IDE under the Tools > Plugins menu.
MPLAB® XC16 Compiler:
The peripheral libraries are no longer shipped with the newer compiler versions. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.
If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page; and will need to be installed on top of the compiler installation.
Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the compiler page: http://www.microchip.com/mplab/compilers
For new code development, it is recommended to use the MCC (Microchip Code Configurator). MCC can be used to generate routines that perform similar tasks to those supplied by the peripheral library. For a list of supported devices, refer to the release notes on the MCC page, under the Documentation tab. MCC is available as an MPLAB X IDE plugin and can be installed from the IDE under the Tools > Plugins menu.
MPLAB® XC32 Compiler:
The MPLAB XC32 peripheral libraries (including the header file plib.h) provided with earlier versions of XC32 compiler are no longer shipped with the compiler. Code using legacy peripheral libraries will not build with the latest compiler version; there will be errors referring to missing peripheral library routines.
If you need to use the peripheral libraries that were formerly shipped with the compiler, these can be separately downloaded from the compiler page, and will need to be installed on top of the compiler installation.
Peripheral libraries are under the Downloads tab (Legacy Peripheral Libraries) on the compiler page: http://www.microchip.com/mplab/compilers
Legacy peripheral libraries are being replaced with the MPLAB Harmony integrated framework. For more details refer to the page MPLAB Harmony framework.

