Skip to content

Not able to build the code // Error compiling for board Arduino Uno #11

@minaagn11

Description

@minaagn11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions