Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails for examples using QueueArray lib #153

Open
vortigont opened this issue Oct 23, 2022 · 0 comments
Open

Build fails for examples using QueueArray lib #153

vortigont opened this issue Oct 23, 2022 · 0 comments

Comments

@vortigont
Copy link

some of the examples that depends on QueueArray lib throws build error. i.e. example 14,19,25
Is that the right lib to use?

/run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:57:20: error: no matching function for call to 'QueueArray<Task*>::QueueArray()'
   57 |   Serial.print("MainLoop run: ");
      |                    ^~~~~~~~
In file included from /run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:18:
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:116:1: note: candidate: 'QueueArray<T>::QueueArray(uint16_t) [with T = Task*; uint16_t = short unsigned int]'
  116 | QueueArray<T>::QueueArray (const uint16_t initialSize) {
      | ^~~~~~~~~~~~~
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:116:1: note:   candidate expects 1 argument, 0 provided
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:64:7: note: candidate: 'constexpr QueueArray<Task*>::QueueArray(const QueueArray<Task*>&)'
   64 | class QueueArray {
      |       ^~~~~~~~~~
.pio/libdeps/esp8266_example14_yield/QueueArray/QueueArray.h:64:7: note:   candidate expects 1 argument, 0 provided
In file included from /run/user/1000/1/Scheduler_example07_WDT/src/Scheduler_example19_Dynamic_Tasks.ino:17:
lib/src/TaskScheduler.h:305:17: warning: 'uint32_t _task_micros()' defined but not used [-Wunused-function]
  305 | static uint32_t _task_micros() {return micros();}
      |                 ^~~~~~~~~~~~
*** [.pio/build/esp8266_example14_yield/src/Scheduler_example19_Dynamic_Tasks.ino.cpp.o] Error 1

@vortigont vortigont changed the title Bild fails for examples using QueueArray lib Build fails for examples using QueueArray lib Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant