Impossible to rename main.c into main.cpp in sample code?
Hi,
I'm using the sample HID_Standalone (USB_Host) for the board NUCLEO-H723ZG. I tried to rename the file main.c into main.cpp to force compilation with g++ instead of gcc. This worked fine with an Hello World I studied before.
Unfortunately, a really weird behaviour appears. If I rename the file with right click -> rename, the file appears renamed on the IDE but the actual file on the filesystem stays main.c. If I open with right click->show in->system explorer it's still main.c. If I run the build project command it still looks for main.c. If I rename the file on the system explorer it says that file main.c is not found. If I rename subdir.mk in the core folder another one is generated and it still contains main.c.
How to rename correctly the file? Is this the expected behaviour?
