undefined refernce to loop

I didn't write this bit, my boss did,

Sounds like you should ask your boss then.

However if he is thinking that loop() is like main() then perhaps he is thinking you can pass arguments into the program from command line options.