What does "collect2.exe: error: ld returned 1 exit status" mean?

Code is not a valid arduino sketch. You must define a setup() and loop() function - even if loop() is empty, it has to exist.