ArduinoProcessScheduler icon indicating copy to clipboard operation
ArduinoProcessScheduler copied to clipboard

Compilation failed for RingBuff

Open Tauvic opened this issue 6 years ago • 2 comments

Tried to integrate this into my project a Makeblock mBot robot. I got all kinds of compiler errors in RingBuff like "'for loop initial declarations are only allowed in C99 mode". Seems i have to change compiler settings. The problem is that the mBot software is preconfigured and i am not sure if this change will introduce other problems.

So i decide to not use this library.

Tauvic avatar Dec 08 '17 16:12 Tauvic

You're looking for the -std=c99 flag, which allows for loop initialization.

Thanks for letting me know of the issue on other platforms.

wizard97 avatar Dec 08 '17 17:12 wizard97

Thanks for the quick reply. I know, the point is that compiler setting to c99 is non-standard for the Makeblock mBot robot. The makeblock manufacturer uses other settings when compiling their firmware. So i don't know what will happen if I deviate from the recommended settings. That makes me hesitate to use your solution.

Im now using https://github.com/arkhipenko/TaskScheduler. No offence to your solution its just me feelling unsure about changing the compiler settings.

Tauvic avatar Dec 10 '17 08:12 Tauvic