arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.15k stars 7.01k forks source link

(.text+0x0): multiple definition of `__vector_7' Error #7691

Closed ozmnalper closed 6 years ago

ozmnalper commented 6 years ago

My Error Code:

Arduino:1.8.5 (Windows 10), Kart:"Arduino/Genuino Uno"

libraries\Tone\Tone.cpp.o (symbol from plugin): In function `timer0_toggle_count':

(.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.

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

code.zip

per1234 commented 6 years ago

This issue tracker is only to be used to report bugs or feature requests. This topic is more appropriate for the Arduino Forum. I'm sure we'll be able to help you with your problem over there.

Please do this:

  1. Read http://forum.arduino.cc/index.php?topic=148850
  2. If you haven't already done so, create a new thread in the appropriate section of the forum (http://forum.arduino.cc/), following all the rules.

EDIT: Forum thread: http://forum.arduino.cc/index.php?topic=552982

PaulStoffregen commented 6 years ago

You're trying to use 2 libraries (neither published directly from Arduino) which need the same timer.

The board you're using, Uno, only has 1 of that type of timer, so there simply is no good solution to using these 2 libs on Uno. But even if this could be done, the place to ask would be the forums or issue trackers for the authors of these libraries, since they're not published or maintained by Arduino.