Error compiling ros_lib_kinetic

Hi,
I have some trouble compiling the ros_lib_kinetic.

I installed the lib and added it as dep:

[env:nucleo_l432kc]
platform = ststm32
framework = mbed
board = nucleo_l432kc
build_flags = -D PIO_FRAMEWORK_MBED_EVENTS_PRESENT -D PIO_FRAMEWORK_MBED_RTOS_PRESENT
lib_deps = ros_lib_kinetic

As I try to compile, the following error occurs:

.piolibdeps/ros_lib_kinetic_ID5197/ros/msg.h:127:3: error: template with C linkage

which is weird, it sounds like msg.h was opened as C and not C++.