Huge Error on build

When I build my project I get this which I have no idea waht is wrong and how to fix it
Ray.

Arduino: 1.8.19 (Windows 10), TD: 1.56, Board: "Arduino Uno

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\RayHall\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\RayHall\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Arduino\projects\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765 -warnings=none -build-cache C:\Users\RayHall\AppData\Local\Temp\arduino_cache_529428 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Arduino\Testing\EPASController\EPASController.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\RayHall\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\RayHall\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Arduino\projects\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765 -warnings=none -build-cache C:\Users\RayHall\AppData\Local\Temp\arduino_cache_529428 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Arduino\Testing\EPASController\EPASController.ino

Using board 'uno' from platform in folder: C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4

Using core 'arduino' from platform in folder: C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4

Detecting libraries used...

"C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\cores\arduino" "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\variants\standard" "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.cpp" -o nul

Generating function prototypes...

"C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\cores\arduino" "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\variants\standard" "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.cpp" -o "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\cores\arduino" "-IC:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\variants\standard" "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.cpp" -o "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.cpp.o"

Compiling libraries...

Compiling core...

Using precompiled core: C:\Users\RayHall\AppData\Local\Temp\arduino_cache_529428\core\core_arduino_avr_uno_3be072a0fee7a57afdf34ec114cd032c.a

Linking everything together...

"C:\Users\RayHall\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765/EPASController.ino.elf" "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.cpp.o" "C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765/..\arduino_cache_529428\core\core_arduino_avr_uno_3be072a0fee7a57afdf34ec114cd032c.a" "-LC:\Users\RayHall\AppData\Local\Temp\arduino_build_299765" -lm

wiring.c.o (symbol from plugin): In function `__vector_16':

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

C:\Users\RayHall\AppData\Local\Temp\arduino_build_299765\sketch\EPASController.ino.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. >

EPASController.h (1.5 KB)
EPASController.ino (15.2 KB)

I can’t open those files here, please post them inline with <> tags.

Multiple definition of a vector usually means two (or more) libraries are trying to use the same interrupt resource, often a timer interrupt. But since I will not download code that is the best that I can say.

Sorry is this better.
<EPASController.h (1.5 KB)>
<EPASController.ino (15.2 KB)>

The choice of “…” or <…>
Depends on where those files are located.

The #include documentation will help you a bit. HERE

Not really. Read the forum guidelines to see how to properly post code and information on how to get the most from this forum.

Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Since one of the two definitions is in wiring.c and the only ISR in wiring.c is the Timer0 Overflow interrupt I think "EPASController" is trying to use the Timer0 Overflow interrupt.

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