Resolved! CubeIDE doesn't compile C++ files
CubeIDE doesn't look for C++ files. Even worst, no matter that the main.c file has been marked for being excluded from the building, the tool always uses it.Although I started the project as a C++ one, the tool didn't generate the corresponding main....