Skip to content

error: 'for' loop initial declaration used outside C99 mode #44

@MarcoRizz

Description

@MarcoRizz

Hi, I'm trying to start with lvgl.
Following the README steps for Windows, at the execution in PlatformIO the output is the error

.pio\libdeps\emulator_64bits\lvgl\src\core\lv_obj.c: In function 'lv_obj_event':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_obj.c:734: error: 'for' loop initial declaration used outside C99 mode
*** [.pio\build\emulator_64bits\lib0e3\lvgl\core\lv_obj.o] Error 1
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c: In function 'draw_buf_rotate_90':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:825: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:829: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c: In function 'draw_buf_rotate_90_sqr':
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:858: error: 'for' loop initial declaration used outside C99 mode
.pio\libdeps\emulator_64bits\lvgl\src\core\lv_refr.c:859: error: 'for' loop initial declaration used outside C99 mode
*** [.pio\build\emulator_64bits\lib0e3\lvgl\core\lv_refr.o] Error 1

Do I have to change some setting of PlatformIO?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions