Error while sending message using gsm sim900a module interfaced with arduino uno
Update your IDE software. You need IDE 1.0.4 or later. 
I copied your code into my 1.0.5 IDE and compiled it without any error. So it is most probably your version of the Arduino IDE.