I just downloaded the release from the top of this list and compiled it (Arduino v1.8.5) and didn’t see the error. I’m on OSX, though, which platform are you using?
I right-clicked on the Arduino icon and used the ‘run as administrator’ choice to overcome the error. It was a permissions error if I remember correctly.
Just to confirm, with this error, the compile does not complete?
I’m stumped … my last ‘hail-Mary’ attempt would be the observation that the WIN version of Arduino seems to keep separate values for the board choice for each sketch, but you’ve confirmed that this sketch is aimed at the Mega2560.
How about posting the full contents of the compiler window, there might be more info there. Maybe turn up the compiler messages preference a notch if there’s nothing interesting at first…
Ya you were right, it had to do with permissions. I tried to delete directory and it wouldn’t let me do it. The ino file was set deny even the administrator. Very strange, anyways all is perfect in my world for the time being. Thanks for the help.