I have error message :xpected primary-expression before '.' token ??? any help?

// Use this code with UBLOX NEO M8N
#include “Ublox.h”
#define SERIAL_BAUD 115200
//#define GPS_BAUD 9600
#define N_GPS_DATA 4
#define mySerial

//#include <Wire.h> //I2C Arduino Library
#include <SoftwareSerial.h>
//SoftwareSerial mySerial(10, 11); // RX, TX
Ublox M8_Gps;
// Altitude - Latitude - Longitude - N Satellites
float gpsArray[N_GPS_DATA] = {0, 0, 0, 0};

void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
}

void loop() {
if (mySerial.available()) {
char c = mySerial.read();

if (M8_Gps.encode(c)) {
gpsArray[0] = M8_Gps.altitude;
gpsArray[1] = M8_Gps.latitude;
gpsArray[2] = M8_Gps.longitude;
gpsArray[3] = M8_Gps.sats_in_use;
}

}
}

Post the full error message

Please correct your post above and add code tags around your code:

[code]

[color=blue]// your code is here[/color]

[/code]

.

It should look like this:

// your code is here

(Also press ctrl-T (PC) or cmd-T (Mac) in the IDE before copying to indent your code properly)


PS/ this sound very fishy....

#define mySerial
#define mySerial
mySerial.begin(9600);

After the pre-processor, this comes out as:

.begin(9600);

That confuses the compiler because there has to be an object, structure, or union before the '.'.