Does anyone know how to solve this error message.

The project is an IR remote controlled buzzer. the code is below the error message below. The project is meant to recieve an IR signal and then output a tone from a buzzer. The circuit is setup

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: “Arduino/Genuino Uno”

Tone.cpp.o (symbol from plugin): In function `timer0_pin_port’:

(.text+0x0): multiple definition of `__vector_7’

libraries\Arduino-IRremote-master\IRremote.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

<
#include <boarddefs.h>
#include <IRremote.h>
#include <IRremoteInt.h>
#include <ir_Lego_PF_BitStreamEncoder.h>

#include <IRremote.h>;

const int RECV_PIN = 7;
int speaker = 8;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup(){
Serial.begin(9600);
irrecv.enableIRIn();
irrecv.blink13(true);
digitalWrite(speaker, OUTPUT);
}

void loop(){
if (irrecv.decode(&results)){
Serial.println(results.value, HEX);
switch(results.value){
case 0xFD00FF:

delay(2000);
break;

case 0xFDA05F:
tone(speaker, 256);
delay(2000);
break;
}
}else{
noTone(speaker);
}
irrecv.resume();
}

No.
If you post your code in the text editor, there are character sequences that are interpreted differently than what they should be. Have a look at your post. How is one supposed to interpret a smiley?

That is one reason why we are so insistent the code be posted inside code tags. For more information, please refer to the post at th top of the forum ‘Read this before posting a programming question…’

Suppose this is the cause: #include <IRremote.h>;

No need to include it twice.

Paul

Hi,
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.

Thanks.. Tom... :slight_smile:

And remember that #include and #define NEVER needs the ;