How do I fix this code?

I’m trying to upload program the V1.0 Smart Robot with the Infrared Remote Control. The Error Message I keep getting is as follows:
" Error: ‘TKD2’ was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to "
This error message shows up with 2 different codes.

The first one is:
#include <IRremote.h>
int receiverpin=12;
int in1=9;
int in2=8;
int in3=7;
int in4=6;
int ENA=10;
int ENB=5;
int ABS=130;
unsigned long RED;
#define A 16736925

#define B 16754775

#define X 16712445

#define C 16720605

#define D 16761405

IRrecv irrecv(receiverpin);
decode_results results;

void _mForward()
{
digitalWrite(ENA,HIGH);
digitalWrite(ENB,HIGH);
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
digitalWrite(in3,LOW);
digitalWrite(in4,HIGH);
Serial.println(“go forward!”);
}
void _mBack()
{
digitalWrite(ENA,HIGH);
digitalWrite(ENB,HIGH);
digitalWrite(in1,HIGH);
digitalWrite(in2,LOW);
digitalWrite(in3,HIGH);
digitalWrite(in4,LOW);
Serial.println(“go back!”);
}
void _mleft()
{
analogWrite(ENA,ABS);
analogWrite(ENB,ABS);
digitalWrite(in1,LOW);
digitalWrite(in2,HIGH);
digitalWrite(in3,HIGH);
digitalWrite(in4,LOW);
Serial.println(“go left!”);
}
void _mright()
{
analogWrite(ENA,ABS);
analogWrite(ENB,ABS);
digitalWrite(in1,HIGH);
digitalWrite(in2,LOW);
digitalWrite(in3,LOW);
digitalWrite(in4,HIGH);
Serial.println(“go right!”);
}
void _mStop()
{
digitalWrite(ENA,LOW);
digitalWrite(ENB,LOW);
Serial.println(“STOP!”);
}
void setup() {
// put your setup code here, to run once:
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT);
pinMode(ENA,OUTPUT);
pinMode(ENB,OUTPUT);
pinMode(receiverpin,INPUT);
Serial.begin(9600);
_mStop();
irrecv.enableIRIn();
}

void loop() {
if (irrecv.decode(&results))
{

RED=results.value;
Serial.println(RED);
irrecv.resume();
delay(150);
if(RED==A)
{
_mForward();
}

else if(RED==B)
{
_mBack();
}

else if(RED==C)
{
_mleft();
}

else if(RED==D)
{
_mright();
}

else if(RED==X)
{
_mStop();
}

}
}

The second one is:
#include <IRremote.h>
int receiverpin = 12;
int LED=13;
volatile int state = LOW;
unsigned long RED;
#define L 16738455
IRrecv irrecv(receiverpin);
decode_results results;
void setup() {
pinMode(LED, OUTPUT);
Serial.begin(9600);
irrecv.enableIRIn();
}
void stateChange()
{
state = !state;
digitalWrite(LED, state);
}
void loop() {
if (irrecv.decode(&results))
{
RED=results.value;
Serial.println(RED);
irrecv.resume();
if(RED==L)
{
}
}
stateChange();
}

Sorry this was a bit lengthly, but I would really appreciate some help. I don’t understand if I’m missing the information from the error message or if it’s something else?

Did you search the forum to the many answers to your question?

Why not?

Also, please read Nick Gammon's post at the top of this Forum on the proper way to post source code here using code tags. It makes it easier for us to read.

Back when the Arduino company sold a robot platform they included three libraries for it. One of those libraries is a copy of the IRremote library that was changed to use the non-standard pin names used on the RobotControl board. Installing the normal IRremote library should fix the problem. Select Sketch->Include Library->Manage Libraries... and put IRremote in the 'Filter your search...' field. Click on "IRremote by shirriff" and then the "Install" button that appears.

There might still be a conflict when both libraries are installed. If so, remove the original which is in (on my windows system) C:\Program Files (x86)\Arduino\libraries (I think it's called RobotIRremote); to play it safe, just move it to a backup location in case you ever need it.