Skip to content

Compilation failed for RingBuff #10

Description

@Tauvic

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.

Activity

  1. wizard97 commented on Dec 8, 2017

    @wizard97
    Owner

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

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

  2. Tauvic commented on Dec 10, 2017

    @Tauvic
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions