Compilation fails: "undefined reference to loop'"

C:\Users\quoct\AppData\Local\Temp\ccxlN7DR.ltrans0.ltrans.o: In function main': C:\Users\quoct\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/main.cpp:46: undefined reference to loop'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

@trung009

It looks like your sketch is missing the loop() function. Does the same thing happen when you compile e.g. the blink example?

You forgot to include your sketch. When you do so, please remember to properly format it with the <CODE/> tool.

thank you for your help!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.