Thinxtra / Xkit-Sample

Sample Code for the Xkit. The perfect way to get started with Sigfox, the Thinxtra devkit Xkit boasts a full suite of features and accessories to empower anyone to set up an IoT solution, even with very little hardware experience. Perfect for start-ups, design houses, universities and schools, the kit has everything you need to hit the ground running using the globally available Sigfox network.
23 stars 21 forks source link

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

Open minaagn11 opened 2 years ago

minaagn11 commented 2 years ago

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.