Be sure you compile with the great device
Be sure you programming with the right device too

look to the datasheet... may have difference between these two. Do a search at the microchip website. There's certainely some '876 to '876a migrating reference for those