Thank you for your advice but the problem still exist with MPLAB 8.50 I have erased everything from my program except the Includes for the DT files but it still comes out as error.

Any other ideas?

One more question: What is the option -k# in the command line? I can only find -k- and -k+ in the manual