Closed harrymander closed 5 years ago
@HarryManderTait If you're using C99 this should work fine. LittlevGL requires a C99 compiler. Exactly what error does it give you?
From https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html:
In ISO C99 you can give the elements in any order, specifying the array indices or structure field names they apply to.
It looks like the problem was that I had written some of the code in C++ but was using the C++ compiler to compile all the files including the C files. Compiled the C files with a C compiler and the issue was fixed. Thanks for your help.
The font generator generates the initialisation for the
lv_font_t
object in the wrong order, causing a compiler error.Generated order:
Correct order from
lv_font.h
: