Unable to compile and run my simulator (static const touchgfx::FontId HUGE = 2; issue)
I get the following error every I try to to run my simulator. The same generated code is compiling fine on my target.
I keep getting an error related to static const touchgfx::FontId HUGE = 2;.
Compiling gui/src/pages/views/SettingsCommunicationView.cpp
In file included from C:/TouchGFX/4.24.2/env/MinGW/i686-w64-mingw32/include/_mingw.h:12:0,
from C:/TouchGFX/4.24.2/env/MinGW/i686-w64-mingw32/include/crtdefs.h:10,
from C:/TouchGFX/4.24.2/env/MinGW/i686-w64-mingw32/include/assert.h:15,
from ../Middlewares/ST/touchgfx/framework/include/touchgfx/hal/Types.hpp:22,
from ../Middlewares/ST/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Cell.hpp:21,
from ../Middlewares/ST/touchgfx/framework/include/touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp:21,
from gui/src/main_screen/MainView.cpp:1:
generated/fonts/include/fonts/ApplicationFontProvider.hpp:18:35: error: 'constexpr' needed for in-class initialization of static data member 'const FontId* Typography::_imp___HUGE' of non-integral type [-fpermissive]
static const touchgfx::FontId HUGE = 2;
Please help.
