Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile problem: multiple definition of `__vector_6' #80

Open
andreas-bulling opened this issue Feb 10, 2019 · 7 comments
Open

Compile problem: multiple definition of `__vector_6' #80

andreas-bulling opened this issue Feb 10, 2019 · 7 comments

Comments

@andreas-bulling
Copy link

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.
@rocketscream
Copy link
Owner

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

@bkrajendra
Copy link

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

@HiFiJ
Copy link

HiFiJ commented Mar 18, 2020

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

@cYnd
Copy link

cYnd commented Mar 19, 2020

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?

@robwilkes
Copy link

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 

@eldiamond2
Copy link

eldiamond2 commented Sep 15, 2020

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

@ICPete
Copy link

ICPete commented Sep 2, 2024

I know this thread is 4 years stale, but thank you, eldiamond2; your solution helped me!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants