What does this error message mean?

Arduino: 1.8.2 (Mac OS X), Board: "Arduino/Genuino Uno"

5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I have been trying to fix this problem for ages! I just don't know what this means. Also, it doesn't give the line number.

5:16 means line 5 column 16 of the file seen by the compiler, which you can find if you turn on the verbose output as explained at the bottom of what you posted.

Basically, the message says that TKD2 has not been defined. Why do you expect it to have meaning? Did you spell it correctly?

That is a common error with a known fix. It is due to having two of some library due to the arduino robot thing. You have to delete one of them. If you will search that error message you should find plenty of threads where that was fixed.

Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Also tell us what it is supposed to do?

Thanks.. Tom.. :slight_smile:

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.