Here are the errors cut out:
Code: Select all
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:51:3: error: '_base_object_methods' does not name a type
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:55:11: error: expected identifier before '*' token
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:55:47: error: 'size_t' has not been declared
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:55:3: error: ISO C++ forbids declaration of 'size_t' with no type [-fpermissive]
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:55:55: error: 'size_t' declared as function returning a function
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:57:10: error: expected identifier before '*' token
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:57:3: error: ISO C++ forbids declaration of 'msg_t' with no type [-fpermissive]
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:57:41: error: 'msg_t' declared as function returning a function
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:59:10: error: expected identifier before '*' token
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:59:3: error: ISO C++ forbids declaration of 'msg_t' with no type [-fpermissive]
../../chibios_stable-21.11.x/os/hal/include/hal_streams.h:59:30: error: 'msg_t' declared as function returning a function
I haven't tried analyzing the whole thing, but to start with it seems that _base_object_methods is not defined anywhere. I see that hal_objects.h has a #define for it, but that must not be getting included. Since this is part of the os code, I would expect the #includes to be bringing in the hal_objects.h code. Could you please give some help about what is going on here?
Thanks,
John