Don't understand an ERROR !!!

Hello .I have this error and I do not understand what is it:

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

(.text+0x0): multiple definition of `__vector_13'

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

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

collect2.exe: error: ld returned 1 exit status

exit status 1

Looks like you’ve got two libraries trying to use the same timer. That’s my guess since I can’t see your code.

I get the same message error(I checked the libraries)

I can not post my whole code(because it has 1057 lines(and it is not completed yet))

You CAN post the code or at least attach it. It doesn’t matter how long it is and it certainly doesn’t matter that it is unfinished.

How did your code get so big without you knowing that there was a conflict? You don’t test these things in smaller sketches?

I tested all of them in smaller sketches,but in last one I have this error…
here I have the beginning:

#include <LiquidCrystal_I2C.h>
#include <Adafruit_NeoPixel.h>
#include <Wire.h>
#include <dht.h>
#include <RTClib.h>
#include <IRremote.h>

#ifdef __AVR__
#include <avr/power.h>
#endif

LiquidCrystal_I2C lcd(0x27, 16, 2);
//dht DHT;
//RTC_DS1307 rtc;

const int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);
decode_results results;
Adafruit_NeoPixel pixels(num_of_pixels, RGB_RING, NEO_GRB + NEO_KHZ800);

void setup()
{
  Serial.begin(9600);
  //  rtc.begin();
  pinMode(Echo_pin_front , INPUT);
  pinMode(Trig_pin_front , OUTPUT);
  pinMode(Echo_pin_right , INPUT);
  pinMode(Trig_pin_right , OUTPUT);
  pinMode(Echo_pin_left , INPUT);
  pinMode(Trig_pin_left , OUTPUT);
  lcd.begin();
  lcd.backlight();
  lcd.createChar(0, E_from_Tesla);
  lcd.createChar(1, A_from_Tesla);
  lcd.createChar(2, S_from_Tesla);
  randomSeed(analogRead(A0));
  //lcd.createChar(1, sad);
  //lcd.createChar(0, smile);
  //lcd.createChar(2, onion);


  pinMode(led_right, OUTPUT);
  pinMode(led_left, OUTPUT);

  pinMode(PWM_left, OUTPUT);
  pinMode(PWM_right, OUTPUT);

  pinMode(IN_1_left, OUTPUT);
  pinMode(IN_2_left, OUTPUT);
  pinMode(IN_1_right, OUTPUT);
  pinMode(IN_2_right, OUTPUT);

  analogWrite(PWM_left, 0);
  analogWrite(PWM_right, 0);

#if defined(__AVR_ATtiny85__) && (F_CPU == 16000000)
  clock_prescale_set(clock_div_1);
#endif
  pixels.begin();
  pixels.clear();
  irrecv.enableIRIn();
  irrecv.blink13(true);
  lcd.setCursor(0, 1);
  lcd.print("PASSWORD>  ");
}


void loop()
{
  //unsigned long led_time_button = millis();
  // check_for_lcd_GAME();
  //Look_for_DATE_TIME_OR_temperature_humidity();
  //open_led_press_number_5();
  //RGB_RING_flash_right();
  //RGB_RING_flash_left();
  //ultrasonic_sensor_front();
  //ultrasonic_sensor_right();
  //ultrasonic_sensor_left();
  //ultrasonic_sensor_back();
  //check_for_front_2_led();
  if (unlock_system_var_STOP)
  {
    message_unlock_system();
  }
  if (irrecv.decode(&results))
  {
    irrecv.resume();

    if (car_Is_locked)
    {
      //         number:        0                            1                            2                            3                            4                           5                            6                            7
      if (results.value == 0xFF9867 || results.value == 0xFFA25D || results.value == 0xFF629D || results.value == 0xFFE21D || results.value == 0xFF22DD || results.value == 0xFF02FD || results.value == 0xFFC23D || results.value == 0xFFE01F)
      {
        //Serial.println(results.value, HEX);
        unlock_system_var_STOP = false;
        lcd.setCursor(0, 0);
        lcd.print(" UNLOCK  SYSTEM ");
        lcd.setCursor(pos, 1);
        lcd.print("*");
        list[num_of_digits] = results.value;
        num_of_digits++;
        pos++;
      }
      if (num_of_digits == 4)
      { //number           6                     7                       4                      3
        if (list[0] == 0xFFC23D && list[1] == 0xFFE01F && list[2] == 0xFF22DD && list[3] == 0xFFE21D)
        {
          buzzer_and_led_every_MAIN_program();
          delay(500);
          lcd.clear();
          delay(500);
          lcd.setCursor(0, 0);
          TESLA();
          delay(1200);
          lcd.setCursor(3, 1);
          lcd.print("DUAL  MOTOR");
          delay(350);
          lcd.setCursor(0, 1);
          lcd.print("               ");
          delay(350);
          lcd.setCursor(3, 1);
          lcd.print("DUAL  MOTOR");
          delay(350);
          num_of_digits = 0;
          pos = 10;
          car_Is_locked = false;
        }
        if (list[0] != 0xFFC23D || list[1] != 0xFFE01F || list[2] != 0xFF22DD || list[3] != 0xFFE21D)
        {
          num_of_digits = 0;
          pos = 10;
          delay(200);
          lcd.clear();
          lcd.setCursor(0, 0);
          lcd.print("INVALID PASSWORD");
          delay(400);
          lcd.clear();
          delay(400);
          lcd.setCursor(0, 0);
          lcd.print("INVALID PASSWORD");
          delay(500);
          lcd.clear();
          lcd.print(" UNLOCK  SYSTEM ");
          lcd.setCursor(0, 1);
          lcd.print("PASSWORD>  ");
        }
      }
    }
  }
}

“tone” only occurs (so far) once on this page.

I'm guessing the conflict is for a timer interrupt between the tone() function (even though OP didn't bother to post that portion of the source code) and the IRremote library.

vector 13 is, according to the datasheet, timer 1 compare/match for channel B, ie pin 10 for the Uno.
Doesn't match the timer0 mentioned in the name of the function, not sure if that's significant

There must be an ISR defined for this on both libraries.

What should I do?

Get an active sounder, or an MP3 palyer

arduiNICK:
What should I do?

Fix your code. I’d try to help but I can only see a portion of it. Oh well. Good luck. I’ve wasted enough time on this. You’ve been told what to do and you’ve refused. I’m not sure what you want me to do but I can’t fix code I can’t see.

Tone() function is the problem?
Can I use analogWrite instead tone() ?

Also I have a 9 Volt buzzer(until now I used a 5V buzzer(smaller))

What is the difference active buzzer and the simple buzzer I have??

Thanks...

arduiNICK:
Tone() function is the problem?

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

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

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

c:/program files (x86)/arduino/hardware/tools/avr/bin/…/lib/gcc/avr/4.9.2/…/…/…/…/avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

Maybe tone isn’t your problem - maybe it’s IRremote.

Ok...
Do you want to post the whole code in pieces ?

but in this code I have no problems …(It runs good)

#include <IRremote.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

const int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);
decode_results results;
unsigned long list[4] = {};    //array to add hex numbers...                the correct password is:  6743         <---
int num_of_digits = 0;
int pos = 10;    //position in lcd...
boolean car_Is_locked = true;
unsigned long present_unlock_system_time = 0;
boolean unlock_system_var_time = true;
boolean unlock_system_var_STOP = true;

void setup()
{
  Serial.begin(9600);
  lcd.begin();
  lcd.backlight();
  lcd.setCursor(0, 0);
  irrecv.enableIRIn();
  irrecv.blink13(true);
  lcd.setCursor(0, 1);
  lcd.print("PASSWORD>  ");
}


void message_unlock_system()
{
  unsigned long current_unlock_system_time = millis();
  if (current_unlock_system_time - present_unlock_system_time >= 500)
  {
    if (unlock_system_var_time)
    {
      lcd.setCursor(0, 0);
      lcd.print(" UNLOCK  SYSTEM ");
    }
    else
    {
      lcd.setCursor(0, 0);
      lcd.print("                ");
    }
    present_unlock_system_time = current_unlock_system_time;
    unlock_system_var_time = !unlock_system_var_time;
  }
}


void loop()
{
  if (unlock_system_var_STOP)
  {
    message_unlock_system();
  }
  if (irrecv.decode(&results))
  {
    irrecv.resume();

    if (car_Is_locked)
    {
      //         number:        0                            1                            2                            3                            4                           5                            6                            7
      if (results.value == 0xFF9867 || results.value == 0xFFA25D || results.value == 0xFF629D || results.value == 0xFFE21D || results.value == 0xFF22DD || results.value == 0xFF02FD || results.value == 0xFFC23D || results.value == 0xFFE01F)
      {
        //Serial.println(results.value, HEX);
        unlock_system_var_STOP = false;
        lcd.setCursor(0, 0);
        lcd.print(" UNLOCK  SYSTEM ");
        lcd.setCursor(pos, 1);
        lcd.print("*");
        list[num_of_digits] = results.value;
        num_of_digits++;
        pos++;
      }
      if (num_of_digits == 4)
      { //number           6                     7                       4                      3
        if (list[0] == 0xFFC23D && list[1] == 0xFFE01F && list[2] == 0xFF22DD && list[3] == 0xFFE21D)
        {
          delay(500);
          lcd.clear();
          lcd.setCursor(0, 0);
          lcd.print("  TESLA MOTORS");
          num_of_digits = 0;
          pos = 10;
          car_Is_locked = false;
        }
        if (list[0] != 0xFFC23D || list[1] != 0xFFE01F || list[2] != 0xFF22DD || list[3] != 0xFFE21D)
        {
          num_of_digits = 0;
          pos = 10;
          delay(200);
          lcd.clear();
          lcd.setCursor(0, 0);
          lcd.print("INVALID PASSWORD");
          delay(400);
          lcd.clear();
          delay(400);
          lcd.setCursor(0, 0);
          lcd.print("INVALID PASSWORD");
          delay(400);
          lcd.clear();
          delay(400);
          lcd.setCursor(0, 0);
          lcd.print("INVALID PASSWORD");
          delay(500);
          lcd.clear();
          delay(200);
          lcd.clear();
          lcd.print(" UNLOCK  SYSTEM ");
          lcd.setCursor(0, 1);
          lcd.print("PASSWORD>  ");
        }
      }
    }
  }
}

arduiNICK:
...(It runs good)

.... and doesn't use tone().

I say it,because you say maybe tone() is not a problem

Well, if you don’t use it, it won’t be a problem.
As you’ve just indicated.