Rename of .h and .cpp files does not work #2058
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
Arduino IDE 2.0.3.
Project with a few .ino files and .h and .cpp file.
If you need the project, please let me know, but I think that you do not need it.
Image is not important:

To reproduce
Rename the .h and .cpp files with the ... Rename
Changed #include to the new name
Save
When you Verify, you get a lot of files after the Linking everythiing together. And I think the most important message is "collect2.exe: error: ld returned 1 exit status"
Also when you close the IDE and open it by double clicking the .ino file it is the same.
Please find here the complete compile Output message:
Expected behavior
This is the normal compile output after -File -Save As.. to a different folder.
Arduino IDE version
2.0.3
Operating system
Windows
Operating system version
10
Additional context
Conclusion:
When you save it and reopen it, it does not help.
Work around: Save the complete sketch to another folder, is working.
Issue checklist
The text was updated successfully, but these errors were encountered: