I'm in the process of putting together a simple version of a project that has been running fine for years. Both use 18F series chips, the original being a an 18F4580, the new being an 18F2520. I've been cutting and pasting variables etc from one project into the new project, and then modifying it as required, however I've now got a symbol not previously defined error, but it's pointing to the PBPPIC18.LIB file rather then the project file, with the (Regin) and (Bitin) being the offending items.

Any pointers as to how to resolve this ??