3D printer firmware compile

I have received this error message while trying to "export compiled binary". Not sure where to go from here. Thanks in advance!

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

C:\Users\CLINT&~1\AppData\Local\Temp\ccOb8pi4.ltrans0.ltrans.o: In function `main':

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\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 Mega or Mega 2560.

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

It would appear that the sketch you are trying to compile has no setup() or loop() functions

It is possible to compile code with these not present but I assume that the code you have is not structured to allow this

What code exactly are you trying to compile ?

How do I add "loop" and "setup"?

You should not have to, they are already there in MarlinCore.cpp. I'm trying to compile on an old PC, but it takes ages so can't be sure if it works as I think it works.

Did you extract the full zip, double click the ino to start the IDE and compile that ino?

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