Hello Michael,
It compiles ok for me for a 16f884, not so with say 16f877. Is there more code like say config fuse settings which could be throwing you a curve?
I did not read any data sheets to see if 16f877 has I2C, maybe why it does not compile. also how old a version of PBP are you using?
JS