[SOLVED] Preprocessor issue with cloud compiler

Hi folks,

A bugfix to the cloud compiler that went out 1 week ago has been causing some code that used to compile with the cloud compiler to now have errors. It affects code that has preprocessor definitions (#ifdef, #include and #define) at the top of the file.

A fix is in the works and should go out early next week.

As a workaround you can add #include "Particle.h" to the top of your file.

Thanks for everybody who reported issues with the cloud compiler. It helped me figure out where the issue was.


Thank you for sharing @jvanier!

The fix rolled out to all cloud compiler targets on March 14, 2017.

For more information about the preprocessor, see the documentation here: https://docs.particle.io/reference/firmware/#preprocessor