Arduino MEGA + GSM SIM900

HI

I have this gsm module Arduino GSM/GPRS Shield with the library of this stor.
So using this on the arduino UNO he works very well but for MEGA i think the library is with some problem because i make the changes and appears this Screenshot - a80ad9501a554b8f3c9cf4fc81ff6904 - Gyazo

please help

The code.

#include "SIM900.h"
#include <SoftwareSerial.h>
//If not used, is better to exclude the HTTP library,
//for RAM saving.
//If your sketch reboots itself proprably you have finished,
//your memory available.
//#include "inetGSM.h"

//If you want to use the Arduino functions to manage SMS, uncomment the lines below.
#include "sms.h"
SMSGSM sms;

//To change pins for Software Serial, use the two lines in GSM.cpp.

//GSM Shield for Arduino
//www.open-electronics.org
//this code is based on the example of Arduino Labs.

//Simple sketch to send and receive SMS.

int numdata;
boolean started=false;
char smsbuffer[160];
char n[20];

void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Shield testing.");
//Start configuration of shield with baudrate.
//For http uses is raccomanded to use 4800 or slower.
if (gsm.begin(2400)) {
Serial.println("\nstatus=READY");
started=true;
} else Serial.println("\nstatus=IDLE");

if(started) {
//Enable this two lines if you want to send an SMS.
//if (sms.SendSMS("3471234567", "Arduino SMS"))
//Serial.println("\nSMS sent OK");
}

};

void loop()
{
if(started) {
//Read if there are messages on SIM card and print them.
if(gsm.readSMS(smsbuffer, 160, n, 20)) {
Serial.println(n);
Serial.println(smsbuffer);
}
delay(1000);
}
};

The error

C:\Users\João\Documents\Arduino\libraries\GSM_MEGA\HWSerial.cpp: In member function 'size_t HWSerial::print(const __FlashStringHelper*)':
C:\Users\João\Documents\Arduino\libraries\GSM_MEGA\HWSerial.cpp:63:12: error: 'prog_char' does not name a type
const prog_char *p = (const prog_char *)ifsh;
^
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,
from C:\Users\João\Documents\Arduino\libraries\GSM_MEGA\HWSerial.h:6,
from C:\Users\João\Documents\Arduino\libraries\GSM_MEGA\HWSerial.cpp:1:
C:\Users\João\Documents\Arduino\libraries\GSM_MEGA\HWSerial.cpp:66:43: error: 'p' was not declared in this scope
unsigned char c = pgm_read_byte(p++);

I'm not following links (your second one) to sites I've never heard of.

Post your code and details of how you have the jumpers set.

Update your IDE . You might using lower version. Thec code work on arduino v1.0.6 & greater version only.

thanks