You have to use PBL and you must be using 18F series chips, you select PBL in the compiler options menu under view.