Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
C:\Users\colombo\AppData\Local\Temp\ccHe1bww.ltrans0.ltrans.o: In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\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 Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Would be great if you could:
Open up the sketch in the IDE
Select Edit -> Select All
Select Edit -> Copy for Forum
Then return here -> start a new reply -> enter ctrl+V to paste your sketch in the correct format - then click "reply"
That way we'll be able to see the error and help you.
Every sketch must have a setup and loop function, that particular error is caused by not having a loop function. The loop function does not need to contain any code.
1 Like
@karcher99 , your topic has been moved to a more suitable location on the forum.
system
Closed
October 12, 2021, 8:58am
6
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.