Arduino ide is having an issue sending compiled sketches

Arduino: 1.8.16 (Windows Store (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\kindr\AppData\Local\Temp\ccxetHRL.ltrans0.ltrans.o: In function `main':

C:\Users\kindr\Documents\ArduinoData\packages\arduino\hardware\avr\1.8.4\cores\arduino/main.cpp:46: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Arduino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

this is the error that i am receiving when i try to upload some code. this has never happened to me before. everything was being loaded just fine a few days ago. what can i be doing wrong and how can i fix it?

Your sketch is missing the loop function. Every sketch must have a setup and loop.

ah thank you. for some reason i put void update instead of loop

@imcomin4u, your topic has been moved to a more suitable location on the forum. I'm not sure why you think that this relates to Avrdude, stk500 or Bootloader issues.

If your problem is solved, you can tick the Solution checkbox under the most useful reply to let others know that a solution was found/provided.

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