Newping.h library

Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"

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

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

libraries\NewPing\NewPing.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 Uno.

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

Two libraries are trying to use the same interrupt, probably for timing purposes

so what do i do

Use different libraries or maybe don't use one or other of them at all. You did not post your code so it is not obvious which libraries you are using apart from NewPing

okay

The author of the NewPing library has provided documentation about this specific error:
https://bitbucket.org/teckel12/arduino-new-ping/wiki/Multiple%20Definition%20of%20"__vector_7"%20Error

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.