Check the code here:
http://www.picbasic.co.uk/forum/showthread.php?t=15960

You are missing the PIC model after DEVICE.

Robert