Error Compiling

Need some help here. I am not much of a programmer and specially writing codes in Arduino. I got this code from a prior project but I keep on getting this compiling error. Can anyone give me a hand here?
Thank you

Ultrasonic\Ultrasonic.cpp.o: In function `Ultrasonic::Timing()':
C:\Program Files (x86)\Arduino\libraries\Ultrasonic/Ultrasonic.cpp:19: multiple definition of `Ultrasonic::Timing()'
Ultrasonic.cpp.o:C:\Users\Israel\AppData\Local\Temp\build6334312851572075205.tmp/Ultrasonic.cpp:19: first defined here
Ultrasonic\Ultrasonic.cpp.o: In function `Ultrasonic::Ranging(int)':
C:\Program Files (x86)\Arduino\libraries\Ultrasonic/Ultrasonic.cpp:30: multiple definition of `Ultrasonic::Ranging(int)'
Ultrasonic.cpp.o:C:\Users\Israel\AppData\Local\Temp\build6334312851572075205.tmp/Ultrasonic.cpp:30: first defined here
Ultrasonic\Ultrasonic.cpp.o: In function `Ultrasonic':
C:\Program Files (x86)\Arduino\libraries\Ultrasonic/Ultrasonic.cpp:11: multiple definition of `Ultrasonic::Ultrasonic(int, int)'
Ultrasonic.cpp.o:C:\Users\Israel\AppData\Local\Temp\build6334312851572075205.tmp/Ultrasonic.cpp:11: first defined here
Ultrasonic\Ultrasonic.cpp.o: In function `Ultrasonic':
C:\Program Files (x86)\Arduino\libraries\Ultrasonic/Ultrasonic.cpp:11: multiple definition of `Ultrasonic::Ultrasonic(int, int)'
Ultrasonic.cpp.o:C:\Users\Israel\AppData\Local\Temp\build6334312851572075205.tmp/Ultrasonic.cpp:11: first defined here
core.a(main.cpp.o): In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'

This is the code for Ultrasonic.cpp

#include "Arduino.h"
#include "Ultrasonic.h"

Ultrasonic::Ultrasonic(int TP, int EP)
{
   pinMode(TP,OUTPUT);
   pinMode(EP,INPUT);
   Trig_pin=TP;
   Echo_pin=EP;
}

long Ultrasonic::Timing()
{
  digitalWrite(Trig_pin, LOW);
  delayMicroseconds(2);
  digitalWrite(Trig_pin, HIGH);
  delayMicroseconds(10);
  digitalWrite(Trig_pin, LOW);
  duration = pulseIn(Echo_pin,HIGH);
  return duration;
}

long Ultrasonic::Ranging(int sys)
{
  Timing();
  distacne_cm = duration /29 / 2 ;
  distance_inc = duration / 74 / 2;
  if (sys)
  return distacne_cm;
  else
  return distance_inc;
}

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

It looks like you are picking up one copy of the ultrasonic library from your library file (libraries\Ultrasonic/Ultrasonic.cpp ) and another because you have the same code in a .cpp file within the particular sketch folder you are using. If it's a library, you don't need to also put the file inside your sketch folder. (This may be something that has changes since "the distant past." I don't think that Arduino used to support user-provided libraries.)

Do you want to just use class Ultrasonic, or sub-class Ultrasonic and specialise it?