CHI582 uses C++support to compile errors
vihor3 opened this issue · 0 comments
vihor3 commented
I enabled CPP support in platformio.ini using board_build. cpp.support=yes, but an error message appeared during compilation indicating that CPP was not supported. How should I solve it
ERROR:
lib/Bthome_v2/bthome.h:99:1: error: unknown type name 'class'
class BTHome{
^~~~~
lib/Bthome_v2/bthome.h:99:13: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
class BTHome{
^
src/sensor.c:23:8: error: unknown type name 'BTHome'
static BTHome *bthome;
^~~~~~
src/sensor.c: In function 'Sensor_Init':