Low-Power icon indicating copy to clipboard operation
Low-Power copied to clipboard

Compile problem: multiple definition of `__vector_6'

Open andreas-bulling opened this issue 6 years ago • 8 comments

libraries/Low-Power-master/LowPower.cpp.o (symbol from plugin): In function `LowPowerClass::idle(period_t, adc_t, timer2_t, timer1_t, timer0_t, spi_t, usart0_t, twi_t)':
(.text+0x0): multiple definition of `__vector_6'
sketch/sensor_mysensor.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Pro or Pro Mini.

andreas-bulling avatar Feb 10 '19 18:02 andreas-bulling

Are you using any other library that possibly accessing the same interrupt vector? What version of the Arduino AVR board support are you using?

rocketscream avatar Feb 17 '19 01:02 rocketscream

Hi I am using this with MySensor Library which might be using Interrupts. any possible solution to resolve this issue.?

bkrajendra avatar Feb 14 '20 12:02 bkrajendra

Hi everyone,

I get the exact compilation error when trying to use it with MySensors 2.3.2 for Arduino Pro Mini. Is there any workaround possible? Thanks very much for your efforts, Joost

HiFiJ avatar Mar 18 '20 18:03 HiFiJ

Hi all,

I want to use this library with the radiohead encrypted rf95 server and I am running in the same problem. Is there any possible workaround?

cYnd avatar Mar 19 '20 15:03 cYnd

Hi all,

I want to use this library with the radiohead encrypted rf95 server and I am running in the same problem. Is there any possible workaround?

Yes I just came across this same thing. I can enable RadioHead RH_ENABLE_ENCRYPTION_MODULE, or I can use Low-Power, I cannot use both else it conflicts.

libraries\Crypto\RNG.cpp.o (symbol from plugin): In function `__vector_6':

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

libraries\Low-Power\LowPower.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 

robwilkes avatar Jun 08 '20 06:06 robwilkes

Go to LowPower.cpp, find this lines

ISR (WDT_vect)
{
	// WDIE & WDIF is cleared in hardware upon entering this ISR
	wdt_disable();
}

and comment it

eldiamond2 avatar Sep 15 '20 06:09 eldiamond2