#include <application.h>

Libraries 2.0 will make things a lot easier for all of us :wink:

Currently you need to have the library files (but only these and none of the examples or other files containing void setup()/void loop()) in side your project folder and then you need to compile the project folder and not just the .ino file.

particle compile electron <projectFolder> --saveTo firmware.bin 

BTW, your line 2 (which is mentioned in the error message) looks like this:

#include "SFE_TSL2561.h"

which hasn’t got anything to with application.h really