Building a C++ project failed due to undefined references to _exit _kill and _getpid. This happens using code generated by CubeMX without any modifications to the code other than renaming main.c to main.cpp.
Based on what I read here, I changed the linker flags in STM32-for-VSCode.config.yaml by adding -specs=nosys.specs. This solved the problem.
Understanding the nature of this problem is very much above my pay-grade. But hopefully these comments are of assistance.
Building a C++ project failed due to
undefined references to _exit _kill and _getpid
. This happens using code generated by CubeMX without any modifications to the code other than renaming main.c to main.cpp.Based on what I read here, I changed the linker flags in STM32-for-VSCode.config.yaml by adding -specs=nosys.specs. This solved the problem.
Understanding the nature of this problem is very much above my pay-grade. But hopefully these comments are of assistance.
And thank you very much for an awesome extension.