Community-PIO-CH32V / platform-ch32v

PlatformIO platform for CH32V RISC-V chips (CH32V003, CH32V103, CH32V20x, CH32V30x, CH32X035) and CH56x, CH57x, CH58x, CH59x
Apache License 2.0
234 stars 37 forks source link

CHI582 uses C++support to compile errors #50

Closed vihor3 closed 9 months ago

vihor3 commented 9 months ago

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':