Are you sure the error was not “ERROR: Unable to fit variable” instead of “fix the variable”? If it was “fit”, then you are most certainly using a PIC without enough RAM for all 110 bytes that you are requesting.

Your code as is compiles fine using a 16F628 (224 bytes of RAM) as the target device but NOT with the 16F84A (68 bytes of RAM) as the target device. In the latter, I get the unable to fit error noted above. Check the data sheet for your PIC to see how much RAM is available. Please let us know.

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA