Closed smuehlst closed 1 year ago
@smuehlst You can refer this pull request https://github.com/riscv-mcu/GD32VF103_Firmware_Library/pull/3
@fanghuaqi Thanks for the hint, I will use that pull request as a workaround for the time being.
There are some more problems in other files that used #ifdef cplusplus, I think the correct one should be #ifdef __cplusplus
@fanghuaqi, could you please merge the fix into the main branch?
done
I'm trying to use the
gd32vf103.h
header from a C++ module in a PlatformIO project for the Sipeed Longan Nano.The C++ compilation fails with the following error message:
The
gd32vf103.h
header has some preparations for C++ compilation, but the typedef forbool
is not guarded:https://github.com/riscv-mcu/GD32VF103_Firmware_Library/blob/12b61d1bf29afbee8ec4eee81cdbf1bd9f89470a/Firmware/GD32VF103_standard_peripheral/gd32vf103.h#L179
Are the framework headers intended to be usable from C++?