Error with GSM.h library when trying to compile

#include <SoftwareSerial.h>
#include <GSM.h>

#define RXPIN 8
#define TXPIN 9
SoftwareSerial myserial(9,8);

//Define the PIN NUMBER of SIM

#define PINNUMBER ""

//APN Data

#define GPRS_APN "xxx.com"
#define GPRS_LOGIN ""
#define GPRS_PASSWORD ""

//create GSM object liabrary

GSM gsmaccess;
GPRS mygprs;

void setup()
{
  // initialize serial communications
  Serial.begin(9600);

  // connection state
  boolean notConnected = true;
  
  // Start GSM shield
  // If your SIM has PIN, pass it as a parameter of begin() in quotes
  while(notConnected)
  {
    if((gsmaccess.begin(PINNUMBER)==GSM_READY) &
        (mygprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)==GPRS_READY))
      notConnected = false;
    else
    {
      Serial.println("Not connected");
      delay(1000);
    }
  }

  Serial.println("Connected to GPRS network");
  }

Still getting error