lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
208 stars 140 forks source link

add support for lower version gcc compilers #30

Closed Mculover666 closed 1 year ago

Mculover666 commented 1 year ago

Hi, some compilation errors occurred when I was compiling with a lower version of the gcc compiler. I added compilation parameters -std=c99 to resolve this problem.

Note,my compiler is arm-linux-gnueabihf-gcc, version is ”gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) “.

kisvegabor commented 1 year ago

I think it shouldn't cause any issues if we remove -std=c99.

Thanks!

Mculover666 commented 1 year ago

image

If the gcc version is earlier, the c99 standard is not automatically used, so we need to manually specify it to ensure successful compilation.

kisvegabor commented 1 year ago

I think we can easily fix these issues in the examples too. If you compiler finds these for you, could you send a PR to fix these?