My own sketch looked correct, but was failing to compile. So I decided to try compiling the Blink sketch out of Examples. Here's the compiler output:
C:\Users\George\AppData\Local\Temp\ccVT0ixY.ltrans0.ltrans.o: In function setup': C:\Users\George\AppData\Local\Temp\.arduinoIDE-unsaved2022510-16684-1874d7d.kuc9\Blink/Blink.ino:28: undefined reference to pinMode'
C:\Users\George\AppData\Local\Temp\ccVT0ixY.ltrans0.ltrans.o: In function loop': C:\Users\George\AppData\Local\Temp\.arduinoIDE-unsaved2022510-16684-1874d7d.kuc9\Blink/Blink.ino:33: undefined reference to digitalWrite'
C:\Users\George\AppData\Local\Temp.arduinoIDE-unsaved2022510-16684-1874d7d.kuc9\Blink/Blink.ino:35: undefined reference to `digitalWrite'
collect2.exe: error: ld returned 1 exit status
Compilation error: exit status 1
Can anyone advise? This looks like a type of installation error, but I'm not sure what to do about it. RC-6 was just fine in this regard.
I think I clicked on a link at the bottom of IDE (a pop-up screen) that invited me to go to rc-7. I’m running Windows 10. Can I just uninstall this version of the IDE (from Control Panel or whatever its called in this version) and still retain my files? I seem to be able to see files and compile correctly from 1.8x.
If files means sketches, just make a backup to be safe. You might want to back up the used libraries as well (so you have the same ones / versions if you want to recompile an existing sketch again).
After that you should be able to safely uninstall.
You might want to check if you have a directory C:\Users\George\AppData\Local\Arduino15 and delete that for a complete uninstall; again, make a backup just in case.
At this time, the "Software" page on Arduino's website only lists the download links for the latest version of Arduino IDE 2.x. However, you can get the download links for Arduino IDE 2.0.0-rc6 from the "Assets" section of this page on the Arduino IDE 2.x development repository:
I would like to tell you that there have been some very significant advancements in the 2.0.0-rc7 release. If you would like to try to get 2.0.0-rc7 working instead of going back to 2.0.0-rc6, I would be happy to help you out with that.
Then you must implement an effective backup strategy. If your sketches are not backed up, they are never safe, regardless of what you do with the Arduino IDE.
Data loss can happen at any time, through many different ways (e.g., hard drive crash, malware, stolen computer, house fire). If you don't back up your irreplaceable data, data loss is not a matter of "if", but of "when".
OK, let's go.
I'm going to ask you to post some additional information I need to provide you with the instructions for fixing the issue.
NOTE: These instructions will not solve the problem. They are only intended to gather more information about the problem.
Please do this:
Start the Arduino IDE 2.0.0-rc7 if it is not already running.
Select File > Preferences from the Arduino IDE menus.
Check the box next to "Show verbose output during: ☐ compilation".
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to fail.
Right click on the black "Output" pane at the bottom of the Arduino IDE 2.x window.
From the context menu, click Copy All.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
This type of error typically indicates a corrupted compilation cache (which would not be expected to be fixed by going back to using 2.0.0-rc6 anyway):
Arduino IDE 1.x cleared the cache on exit, meaning it used to be possible to recover from this situation simply by restarting the IDE.
Arduino IDE 2.x does not do that. The good news is this speeds up compilation significantly since you only need to compile the core the first time for a given board, up until it is changed (e.g., you update to a new version of that board's platform. The bad news is that it makes the recovery from a corrupted cache slightly more complex.
I'll provide instructions.
If it is running, select File > Quit from the Arduino IDE windows.
ⓘ If looking for it with your file browser or command line, note that the C:\Users\George\AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
Please be very careful when deleting things from your computer. When in doubt, back up!
Start the Arduino IDE.
Now try compiling the sketch again. Hopefully the error will no longer occur.