vpcola / ESP32SingleChannelGateway

A Fork of the popular ESP8266 single channel gateway adapted to ESP32 on the 915Mhz band.
74 stars 46 forks source link

SimpleTime-Errors while compiling.... #2

Open njordan77 opened 6 years ago

njordan77 commented 6 years ago

Any idea what goes wrong. Did copy all libraries to the correct folder but still not successful @compiling. Thanks for checking...

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::SimpleTimer()':

C:\TEMP\arduino-nightly\portable\sketchbook\libraries\SimpleTimer-master/SimpleTimer.cpp:35: multiple definition of `SimpleTimer::SimpleTimer()'

sketch\SimpleTimer.cpp.o:sketch/SimpleTimer.cpp:35: first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::SimpleTimer()':

SimpleTimer.cpp:(.text._ZN11SimpleTimerC2Ev+0x0): multiple definition of `SimpleTimer::SimpleTimer()'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimerC2Ev+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::findFirstFreeSlot()':

SimpleTimer.cpp:(.text._ZN11SimpleTimer17findFirstFreeSlotEv+0x0): multiple definition of `SimpleTimer::findFirstFreeSlot()'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer17findFirstFreeSlotEv+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::setTimer(long, void (*)(), int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer8setTimerElPFvvEi+0x0): multiple definition of `SimpleTimer::setTimer(long, void (*)(), int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer8setTimerElPFvvEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::setInterval(long, void (*)())':

SimpleTimer.cpp:(.text._ZN11SimpleTimer11setIntervalElPFvvE+0x0): multiple definition of `SimpleTimer::setInterval(long, void (*)())'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer11setIntervalElPFvvE+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::setTimeout(long, void (*)())':

SimpleTimer.cpp:(.text._ZN11SimpleTimer10setTimeoutElPFvvE+0x0): multiple definition of `SimpleTimer::setTimeout(long, void (*)())'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer10setTimeoutElPFvvE+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::deleteTimer(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer11deleteTimerEi+0x0): multiple definition of `SimpleTimer::deleteTimer(int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer11deleteTimerEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::run()':

SimpleTimer.cpp:(.text._ZN11SimpleTimer3runEv+0x0): multiple definition of `SimpleTimer::run()'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer3runEv+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::restartTimer(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer12restartTimerEi+0x0): multiple definition of `SimpleTimer::restartTimer(int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer12restartTimerEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::isEnabled(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer9isEnabledEi+0x0): multiple definition of `SimpleTimer::isEnabled(int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer9isEnabledEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::enable(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer6enableEi+0x0): multiple definition of `SimpleTimer::enable(int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer6enableEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::disable(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer7disableEi+0x0): multiple definition of `SimpleTimer::disable(int)'

sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer7disableEi+0x0): first defined here

libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::toggle(int)':

SimpleTimer.cpp:(.text._ZN11SimpleTimer6toggleEi+0x0): multiple definition of `SimpleTimer::toggle(int)'

Multiple libraries were found for "TimeLib.h" sketch\SimpleTimer.cpp.o:SimpleTimer.cpp:(.text._ZN11SimpleTimer6toggleEi+0x0): first defined here

Used: C:\TEMP\arduino-nightly\portable\sketchbook\libraries\Time-master libraries\SimpleTimer-master\SimpleTimer.cpp.o: In function `SimpleTimer::getNumTimers()':

per1234 commented 6 years ago

It looks to me like you have a copy of SimpleTimer.cpp in the same folder as the sketch you are compiling, which is conflicting with the other copy of that file correctly installed at C:\TEMP\arduino-nightly\portable\sketchbook\libraries\SimpleTimer-master\SimpleTimer.cpp.