I had a problem compiling my program after updating to the latest cli version, which was byte not recognised.
Prior to the update it worked ok with no compile errors.
History was I was having problems with a hdd, which I swapped out and created a new project folder on the latest drive, and copied all the files into the new project folder.
I checked the paths were ok and set up the same, however when I came to compile I got the above error.
I have no idea where the build file is for this, so would presume, it may have something to do with the build file, however all I did do was add #include <Arduino.h> in the ino file and the sketch compiled error free.
I found the problem when going through answering your questions.
Thanks.
The problem was I had entered #include "Arduino.h" which I presume would have over-ridden the #include <Arduino.h> thus negating any and all defined names, within that file.