Uneless you're using
DEFINE OSCCAL_?K 1 it's not the problem source.

Have a look at
http://www.picbasic.co.uk/forum/show...ght=EPIC+error

HTH