Delete comment from: Ken Shirriff's blog
I cannot get the sample receive code to compile. I get the following:
Arduino: 1.5.8 (Linux), Board: "Arduino Nano, ATmega328"
Robot IR Remote/IRremoteTools.cpp.o: In function `resumeIRremote()':
/opt/arduino-1.5.8/libraries/RobotIRremote/src/IRremoteTools.cpp:10: multiple definition of `irrecv'
sketch_jan18a.cpp.o:/opt/arduino-1.5.8/hardware/arduino/avr/cores/arduino/HardwareSerial.h:109: first defined here
Robot IR Remote/IRremoteTools.cpp.o: In function `resumeIRremote()':
/opt/arduino-1.5.8/libraries/RobotIRremote/src/IRremoteTools.cpp:10: multiple definition of `results'
sketch_jan18a.cpp.o:/opt/arduino-1.5.8/hardware/arduino/avr/cores/arduino/HardwareSerial.h:109: first defined here
Robot IR Remote/IRremoteTools.cpp.o:(.data.RECV_PIN+0x0): multiple definition of `RECV_PIN'
sketch_jan18a.cpp.o:(.data.RECV_PIN+0x0): first defined here
collect2: error: ld returned 1 exit status
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
If I remove either copy I get "not defined in this scope" type errors.
Jan 17, 2015, 10:04:08 PM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

