gsm library errors

We have used the following libraries:
#include<ctype.h>
#include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <GSM_Shield.h>

The following are the errors after verification:
t1:23: error: ‘GSM’ does not name a type
t1.ino: In function ‘void setup()’:
t1:39: error: ‘gpsSerial’ was not declared in this scope
t1:41: error: ‘gsm’ was not declared in this scope
t1:43: error: ‘PARAM_SET_1’ was not declared in this scope
t1.ino: In function ‘void loop()’:
t1:111: error: ‘gsm’ was not declared in this scope
t1:119: error: expected while' before '}' token t1:119: error: expected (’ before ‘}’ token
t1:119: error: expected primary-expression before ‘}’ token
t1:119: error: expected )' before '}' token t1:119: error: expected ;’ before ‘}’ token

Any other libraries or upgrading required?Please reply the solutions to these errors soon…Thank You in advance

error: 'GSM' does not name a type

it seems that your gsm_shield library is not added properly.

error: error: expected `(' before '}' token

check your code line by line you may missing '('

Where is your code?

We have used the following libraries:

Good for you. Where did you get the non-core libraries from?

What kind of hardware do you have?

what u r trying to do? which gsm modem do u use sim300 r sim900? post ur code? explain wht u r trying to do? in clear

we are using sim300.we want to send longitude and latitude read by gps as a sms.

Thank u all...what do u mean by " it seems that your gsm_shield library is not added properly "?? how can we rectify it?should v upgrade the libraries?if yes,how?suggestions please!!!

You dont need any library for doing this ..... i already done this kind of proj..... use substring method to read $GPGGA from gps.... temp save data to any variable again use substring method to read latt and long and send it to gsm modem via at command.......

thanks..vl try it..any more solutions people??

thanks VSathish...AT commands solved almost all our errors...1 doubt...v want to send position data to cellphone...but cell.begin, cell.print are not working...not in scope is the error...any solution to this?? plz help!!!!

post ur code here........ r u using softserial.....

Yes.. v r using soft serial

This is gps-gsm program…it has error related to cell.print…also,gps output on serial monitor is strange…v have used arduino duomilano board and neo6m gps…
plz help as much as possible soon

#include <SoftwareSerial.h>
#include <TinyGPS.h>
#include <NewSoftSerial.h>

long lat,lon; // create variable for latitude and longitude object
String lat1,lon1,pos;
char r=13;
SoftwareSerial gpsSerial(13, 14); // create gps sensor connection
TinyGPS gps; // create gps object

void setup(){
Serial.begin(9600); // connect serial
cell.begin(9600);
gpsSerial.begin(4800); // connect gps sensor
cell.print(“AT+CMGF=1”);
cell.print(r);
cell.print("AT+CMGS=“8861816513"”);
cell.print(r);
}

void loop(){
while(gpsSerial.available()){ // check for gps data
if(gps.encode(gpsSerial.read())){ // encode gps data
gps.get_position(&lat,&lon); // get latitude and longitude
lat1=String(lat);
lon1=String(lon);

pos="Latitude: “+lat1+” "+"Longitude: "+lon1;

// display position
cell.println(pos);
cell.print(r);
}
}
}

it has error related to cell.print.

And that error is?

Error is 'cell' was not declared in this scope how to fix this error??

Error is 'cell' was not declared in this scope how to fix this error??

Take a look at your code. What scope is it defined in? None is not the correct answer.

Well, it is, but that is the problem.

means?? I didnt get u. where to define it? Please explain in detail as i m new to this coding

means?? I didnt get u. where to define it? Please explain in detail as i m new to this coding

See how I quoted your question, so people reading this have some idea what I'm talking about? See how I spelled all the words out? You'll get along a lot better here when you learn to do the same.

You can't just make up names, like cell, as you go along. You need to define a variable, of the appropriate type, called cell, and then use it. You haven't done that.

In which pin u connected GSM modem?................ if u connected gsm in 1&2 use Serial.print...... or if u connected to any other pin Use SOFtserial define pin..........