some sketches appear to need a special version of the IDE

Some sketches appear to need a special (mostly older) version of the IDE and do not compile/load with the newest IDE version.
It would be nice if the latest version of the IDE could compile and load sketches that compile well on any older IDE versions.
How to resolve the problem that older sketches are not always compiled correctly on the latest IDE version???

(deleted)

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.

There are four main reasons why code compiles with one version of a compiler, but not with another:

  1. A defect has been fixed in the C++ standard
  2. A bug has been fixed in the compiler
  3. A regression bug got into the compiler
  4. The code in question was not standard-compliant to begin with, and the compiler just got better at detecting these bugs.

The first three are very rare, the fourth option is much more likely.

If you post the exact sketch and error message, we may be able to help.

There is no way to keep software backwards compatible forever. Some companies try, but spend a huge amount of resources on it.

Pieter

@pert, @PieterP
the source and the error messages are attached
Please help

testLEDS.ino (332 Bytes)

Err_1810.txt (858 Bytes)

(deleted)

You seem to be using an ancient version of the FastLED library.

Remove it, and use the library manager (Ctrl+Shift+I in the IDE) or download it from GitHub to update to the latest version.

As Spycatcher explained, this is not an Arduino issue, the author of the library you were using explicitly caused a compilation error if the Arduino version was too high.