I cannot overload a simple function in STM32CubeIDE with empty C++ project
Strange problem again.
I created a new empty STM32 project and selected C++. Now I made two functions
void test(uint8_t a)
{
}
void test(uint16_t a)
{
}But I get an error of redefining the function test. The file (like all source files) has the ending .c and if I change it to .cpp then it works. But if I change any of my other source files to .cpp the functions in those files are not found any more. If I leave the ending .c then I cannot overload functions. What is going on here???
