Error compiling with no known errors

Valikir018:
Yea I realize that but what part of my code is trying to reference the loop?

It's the the part you can't see. The Aduino IDE 'wraps' your sketch around a supplied main() function to your sketch that includes an init() function to set up timer0 to kick off the hardware timer0 and defines a setup() and loop() function prototypes, so you are obligated to supply a setup() and loop() function.