#problem : GSM_SMS sms class

Hi ,
I'm using GSM\GPRS shield and ultimate GPS shield with Arduino mega 2560 .
I have two problems

first to send sms with class GSM_SMS sms ;
it's tell me " dosn't name a type "

and when using
sms.beginSMS(remoteNumber);
sms.print(txtMsg);
sms.endSMS();

the sms wasn't declare in the scope

second :
I can send sms by using code
if (sms.SendSMS(phone_number, "text msg"))

but I can't take GPS information in the place of "text msg"

help me :slight_smile:

"doesn't name a type" usually means that the library isn't installed, or is installed in the wrong place.