How to be compatible with C++ on the STM32 platform?

I just tried it with lvgl V7.5.0, in the CPP file #include “lvgl.h”, some errors will be reported

The lvgl.h in lvgl-master folder.

image