please see post NO.4
ok the answer to the error is
In ITDB02_Touch.h change #include "WProgram.h" to #include "Arduino.h"
do the same in
ITDB02_Touch.cpp
I don't use Arduino 1.0 very often because all my code was written in IDE_0018. but i used it for this error and the calibration code is working for me, hope it works for you