expected constructor, destructor, or type conversion before ";" token

I am a n00b at this, can anyone tell me what I need to do to fix this error code?

Arduino: 1.8.1 (Mac OS X), Board: "LinkIt ONE"

Warning: platform.txt from core 'MediaTek ARM7 EJ-S (32-bits) Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
GPS_functions.cpp:8: error: expected constructor, destructor, or type conversion before ';' token
} ~GPSWaypoint();
^
GPS_functions.cpp:9: error: expected declaration before '}' token
};
^
exit status 1
expected constructor, destructor, or type conversion before ';' token

Show us your current sketch. Please use code tags. Use the </> icon in the posting menu. [code] Paste sketch here. [/code]

#include "GPSWaypoint.h"
GPSWaypoint::GPSWaypoint()
{
}

GPSWaypoint::~GPSWaypoint()
{
}  ~GPSWaypoint();
};

void parseGPGGA(const char* GPGGAstr, GPSWaypoint* wayPoint){

 if (GPGGAstr[0] == '

){
  int tmp;
  tmp = getComma(1, GPGGAstr);

//get lat/lon coordinates
  float latitudetmp;
  float longitudetmp;
  tmp = getComma(2, GPGGAstr);
  latitudetmp = getFloatNumber(&GPGGAstr[tmp]);

tmp = getComma(3, GPGGAstr);
  //char* n_or_s = getCharString(&GPGGAstr[tmp]);
  Serial.print("Temp:");
  Serial.println(tmp);
  char n_or_s = GPGGAstr[tmp];
  Serial.print("North or South ");
  Serial.println(n_or_s);

tmp = getComma(4, GPGGAstr);
  longitudetmp = getFloatNumber(&GPGGAstr[tmp]);

tmp = getComma(5, GPGGAstr);
  char e_or_w = GPGGAstr[tmp];
  Serial.print("East or West ");
  Serial.println(e_or_w);

// need to convert format
  convertCoords(latitudetmp, longitudetmp, &n_or_s, &e_or_w, wayPoint->latitude, wayPoint->longitude);

//get lat/lon direction
  tmp = getComma(3, GPGGAstr);

tmp = getComma(5, GPGGAstr);

//get GPS fix quality
  tmp = getComma(6, GPGGAstr);
  wayPoint->has_fix = getIntNumber(&GPGGAstr[tmp]);

//get satellites in view
  tmp = getComma(7, GPGGAstr);

}
else{
  Serial.println("No GPS data");
}
}

Why do you have this?
};

You do know for every { you need a }

.

I'm trying my best to follow a tutorial to track a car or vehicle. This was the code I found in the tutorial. I'm super new to C++. Obviously, haha.

If I take it out, it gives the same error. I also don't know enough about the code just yet to know if I need to place a "value" in there, or what the value would be... please help this desperate n00b! :frowning:

This is the tutorial I'm following:
https://docs.labs.mediatek.com/resource/linkit-one/en/tutorials/car-tracker#CarTracker-classGPSWaypoint

That error's there in the tutorial the OP linked to. Here's their code (example 2), copied verbatim:

#include "GPSWaypoint.h"
GPSWaypoint::GPSWaypoint()
{
}

GPSWaypoint::~GPSWaypoint()
{
}	~GPSWaypoint();
};

In the downloadable version of the code, available from mediatek's Github, it looks like this:

 #include "GPSWaypoint.h"


GPSWaypoint::GPSWaypoint()
{
}


GPSWaypoint::~GPSWaypoint()
{
}

Which looks much more sensible.

Just a friendly bit of advice: this is a pretty complex project for someone so new to C++. My advice is to take a few steps back, start with something easier, build up the skills incrementally.