Mark Kriegsmans Fire 2012 won’t compile and here is the error message but I don’t know what it means:
C:\Users\Fred\AppData\Local\Temp\arduino_modified_sketch_745433\Fire2012.ino:88:5: note: containing loop
for( int k= NUM_LEDS - 3; k > 0; k--) {
^
collect2.exe: error: ld returned 1 exit status
Using library FastLED-3.1.3 at version 3.1.3 in folder: C:\Users\Fred\Documents\Arduino\libraries\FastLED-3.1.3
exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.
Mark usually developes reliable code and I’m surprised by this error code. Has anyone seen this before and what does it mean?
Other than issues of my own doing, it’s compiled great on my Uno’s, Nano’s and Pro Micro’s since its’ release.
I also note that there is no line that has NUM_LEDS - 3 in the example, so I suspect the code has been modified.
Even then, changing line 83 in the fire2012 example to match the above line still compiles. Maybe another change to the code has caused the error?
The example code also compiled when I selected your board (when using 1.6.9 of the IDE and 3.1.3 of the library in Win 10).
I suspect you’ve got an issue either with your environment or with a change you’ve made to the code.
Yes make sure you have an up to date Arduino IDE there are some issues with older versions.
Also, put your whole ino file into http://gist.github.com provide more of the build log - I think there may be other error messages that would give more useful context. http://gist.github.com
Finally found original code buried deep on GitHub. Works like a dream. Its too bad that those who munge up original code don’t check to see if it works as intended before they upload/replace original code. Makes those of us with less experience scratch their heads in confusion.