Error Compiling tof Board

The only error says "error compiling for board"

With addition of an empty setup() function it compiles for me

I assume that you have a setup() function in your program...