[Solved] Compile error with software timer, freertos4core library on Core

In Web IDE with firmware version 0.4.9 this program:

#include "freertos4core/freertos4core.h"

Timer timer(8, display);

void setup() {

void loop() {}

void display() {}

Fails to compile with:

/tmp/cctea2TV.ltrans29.ltrans.o: In function `__base_ctor ':
/mnt/compile-service-shared-workspace/0_core__24_2/firmware/main/../wiring/inc/spark_wiring_timer.h:34: undefined reference to `os_timer_create'
collect2: error: ld returned 1 exit status
make[1]: *** [ec50bffabc11002d8f035fdb29461858bda47e70132341b3613482a2ab52.elf] Error 1
make: *** [main] Error 2 

The reference guide implies this should work:Software Timers

Can anyone help me resolve this?


@chrisb2, the temporary solution is to compile with v0.4.7. Some changes in v.0.4.8 is not updated for the freertos4core library and needs to be fixed for that to work.

I have opened an issue here: https://github.com/spark/firmware/issues/924

Thankyou, compiling with 0.4.7 worked.