It's not a case of cutting and pasting somebody's code. Nothing is learnt by doing that. So, I'm going to be a little bit cruel here - but it does aid the learning process... can you find for me the command LCDINIT in section 5 of the PBP manual (to help you the commands are in alphabetical order) - What does it say?
ADCON1 however is valid. The compiler WILL understand ADCON1 once you tell it you're using a pic16F877. By default it looks at a 16F84 which doesn't have an ADCON1 register which is probably why PBP is currently rejecting it.
What version of PBP are you using?
Bookmarks