Compilation error when enabling `LV_USE_CHECK_OBJ_CLASSTYPE`
Author: arturv2000Created Sep 23, 2026Updated Sep 24, 2026
LVGL version
v9.6.0
Platform
Visual Studio Code Simulator on Windows (using mingw64 to compile)
What happened?
Was playing with enabling the several "asserts" that there are in lv_conf.h and when enabling LV_USE_CHECK_OBJ_CLASSTYPE there are compilation errors
error: 'obj_class' undeclared (first use in this function); did you mean 'lv_obj_class'?At lines:
Was using branch release/v9.6 but also happens on master.
How to reproduce?
Enable LV_USE_CHECK_OBJ_CLASSTYPE and try to build.
Source: lvgl/lvgl