It would really help to know which PIC you're compiling for, and which compiler you're
using....

Are you compiling for an 18F2550 or 18F2520?

Are you actually compiling with PBP 2.50b, 2.47, 2.46...?