I recently received and set up a Photon.
The sample applications compile and flash properly from build.particle.io.
However, when I compile the code in the local IDE, Particle Dev, even the ‘Blink an LED’ sample application generates compile errors.
The errors I am seeing are:
"multiple definition of ‘setup’ ", and
"multiple definition of ‘loop’ ".
The compiler flags that ‘setup’ is on lines 6 and 39.
The compiler flags that ‘loop’ is on lines 10 and 55.
This is confusing, since the sample application, ‘Blink an LED’, only has one definition for each. The sample application is unmodified.
Is the cloud compiler adding some definitions before the compile step?
This is such a fundamental issue that I am sure the fix is straightforward. However, I have not seen a direct solution in the forum.
Thank you for the assistance in solving this issue.