Error compiling

#include <IRremote.h>
/*
 * Circuit:-
 * 
 * 3 pin ir sensor's (facing you):
 * - 1st pin connected to ground
 * - 2nd pin connected to 5V
 * - 3rd pin connected to digital pin 11 (PWM)
 */
int RECV_PIN = 11; //(PWM)

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn();
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(String(results.value, HEX));
    irrecv.resume();
  }
}

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: ‘TKD2’ was not declared in this scope

int RECV_PIN = TKD2; // the pin the IR receiver is connected to

Any help?

You're using the version of the IRRemote library that is only for the Arduino Robot platform, that won't work with other boards.

DrAzzy:
You’re using the version of the IRRemote library that is only for the Arduino Robot platform, that won’t work with other boards.

What library do I use to recieve ir then?

DrAzzy: You're using the version of the IRRemote library that is only for the Arduino Robot platform, that won't work with other boards.

. . . a result that would almost certainly shown up for the OP with a simple search.

DrAzzy: You're using the version of the IRRemote library that is only for the Arduino Robot platform, that won't work with other boards.

Actually, that may not be true. But, because the idiots at Arduino couldn't be bothered renaming the IR library when they stole and modified it, it gets compiled when any sketch that uses any IRRemote library gets compiled.

And, unless the board type is Arduino Robot (highly unlikely), the code in that library will not compile.

OP: Unless you have an Arduino Robot (the official one), just delete the file that will not compile.