arkhipenko / TaskScheduler

Cooperative multitasking for Arduino, ESPx, STM32, nRF and other microcontrollers
http://playground.arduino.cc/Code/TaskScheduler
BSD 3-Clause "New" or "Revised" License
1.23k stars 225 forks source link

Compiling Error #4

Closed mirko314 closed 8 years ago

mirko314 commented 8 years ago

Hello, I'm having problems running your example Code. I'm getting the following compiling error.

in file included from sketch_oct21b.ino:1:0:
/home/mirko/Arduino/libraries/TaskScheduler/src/TaskScheduler.h:198:1: error: prototype for 'Task::Task(long unsigned int, long int, void (*)(), Scheduler*, bool, bool (*)(), void (*)())' does not match any in class 'Task'
 Task::Task( unsigned long aInterval, long aIterations, void (*aCallback)(), Scheduler* aScheduler, bool aEnable, bool (*aOnEnable)(), void (*aOnDisable)() ) {
 ^
/home/mirko/Arduino/libraries/TaskScheduler/src/TaskScheduler.h:133:7: error: candidates are: constexpr Task::Task(Task&&)
 class Task {
       ^
/home/mirko/Arduino/libraries/TaskScheduler/src/TaskScheduler.h:133:7: error:                 constexpr Task::Task(const Task&)
/home/mirko/Arduino/libraries/TaskScheduler/src/TaskScheduler.h:136:2: error:                 Task::Task(long unsigned int, long int, void (*)(), Scheduler*, boolean, bool (*)(), void (*)())
  Task(unsigned long aInterval=0, long aIterations=0, void (*aCallback)()=NULL, Scheduler* aScheduler=NULL, boolean aEnable=false, bool (*aOnEnable)()=NULL, void (*aOnDisable)()=NULL);
arkhipenko commented 8 years ago

Hi, I just recompiled all examples on my machine and didn't get any errors.

Could you please specify:

  1. What version of the TaskScheduler library you are using?
  2. What version of the Arduino IDE you are using? Which platform?
  3. What is the target microcontroller?
  4. Which of the examples you are compiling? Which line generated the error?

For instance, in my case: 1, v 1.8,0

  1. 1.6.5/Windows
  2. Uno
  3. All of them. No errors.

Thanks.

Markolise commented 8 years ago

I am also having a compile error very similar on the older IDE I've been using, Just curious if you've tested this with 1.0.5. I'm downloading 1.6.6 to use your great library though, so if it doesn't work no big deal for me.

Current build TaskScheduler v1.8.0 1.6.6\Windows (was using 1.0.5 but had errors) Arduino Mega 2560 None yet, errors in 1.0.5 Edit: 1.6.6 works great on everything

arkhipenko commented 8 years ago

Have not tested this on 1.0.5.

1.6.5. Should work fine.

On Thu, Oct 22, 2015 at 4:25 PM -0700, "Markolise" notifications@github.com wrote: I am also having a compile error very similar on the older IDE I've been using, Just curious if you've tested this with 1.0.5. I'm downloading 1.6.6 to use your great library though, so if it doesn't work no big deal for me.


Reply to this email directly or view it on GitHub: https://github.com/arkhipenko/TaskScheduler/issues/4#issuecomment-150382854