Collect2.exe: error: ld returned 1 exit status

Thank you! problems with IRsend object are solved, but compiler still returned the collect2.exe error .
Also compiler says that i have undefined reference to loop and setup

(Open image in new tab to see)