Hi,
When trying to build the code getting the below error messages, can anyone guide me what's wrong with the code?
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino Uno"
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::Countimer()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::Countimer()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::~Countimer()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::~Countimer()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::setCounter(unsigned int, unsigned char, unsigned char)'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::setCounter(unsigned int, unsigned char, unsigned char, Countimer::CountType, void ()())'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::setInterval(void ()(), unsigned long)'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::getCurrentHours()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::getCurrentMinutes()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::getCurrentSeconds()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::getCurrentTime()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::isCounterCompleted()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::isStopped()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::start()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::pause()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::stop()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::restart()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::callback()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::complete()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::countDown()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::countUp()'
sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function Countimer::Countimer()': (.text+0x0): multiple definition of Countimer::run()'
sketch\Arduino_Timer_Relay.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.
Hi,
When trying to build the code getting the below error messages, can anyone guide me what's wrong with the code?
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino Uno"
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::Countimer()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::Countimer()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::~Countimer()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::~Countimer()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::setCounter(unsigned int, unsigned char, unsigned char)'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::setCounter(unsigned int, unsigned char, unsigned char, Countimer::CountType, void ()())'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::setInterval(void ()(), unsigned long)'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::getCurrentHours()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::getCurrentMinutes()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::getCurrentSeconds()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::getCurrentTime()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::isCounterCompleted()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::isStopped()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::start()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::pause()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::stop()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::restart()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::callback()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::complete()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::countDown()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::countUp()'sketch\Arduino_Timer_Relay.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here
sketch\Countimer.cpp.o (symbol from plugin): In function
Countimer::Countimer()': (.text+0x0): multiple definition ofCountimer::run()'sketch\Arduino_Timer_Relay.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.