Chip specific header files should not be explicitly included in HITECH-C, the documentation clearly states this. Instead, you include a compiler header that will take care of including a specific file in it:
#include <htc.h>
All you need for this is to configure the correct chip in the project settings. The file 16F877A.hexists in the compiler directory, but it directly generates a warning.
source
share