Trying to wrestle this printer out of the hands of a non responsive oem. Rambo v1.3 board
Happens in Arduino App even when there is no config file loaded and you call a file “compile” check.
Sanity Check:
core.a(main.cpp.o): In function main': C:\Program Files\Arduino\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to setup'
C:\Program Files\Arduino\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'
Undefined Reference ??? Is this a link problem where it cannot find the header file containing the USBCON declaration, or should that be done in this file? If Here what is the proper syntax? #include <Arduino.h>
int main(void)
{
init();
#if defined(USBCON)
USBDevice.attach(); #endif
setup();
for (; {
loop();
if (serialEventRun) serialEventRun();
}
Thank you for responding so fast, Perhaps this is the wrong forum to post in. If I could get to the point where I could produce a sketch that would be a good start. I read the rules and read everything I could ,but I am getting nowhere after 2 days of trying. I am trying to use Arduino to compile some Marlin firmware and with configure files loaded or not I get this error which I posted along with the file code it referred to. I apreciate your time, please advise.
gjhuff1:
Thank you for responding so fast, Perhaps this is the wrong forum to post in. If I could get to the point where I could produce a sketch that would be a good start. I read the rules and read everything I could ,but I am getting nowhere after 2 days of trying. I am trying to use Arduino to compile some Marlin firmware and with configure files loaded or not I get this error which I posted along with the file code it referred to. I apreciate your time, please advise.
Your sketch file (.ino) must contain a void setup() function and a void loop() function. What does your sketch file contain?
Marlin 2.0.x requires a modern version of the Arduino IDE. You're using a ridiculously outdated version of the Arduino IDE. Please try it again with the current Arduino IDE release:
I looked at Marlin and you should not need to modify any files. Did you click on the Marlin.ino file to bring it up in the IDE before compiling? In Marlin setup() and loop() are defined in the src/MarlinCore.cpp file so that should not be an issue.
pert:
Marlin 2.0.x requires a modern version of the Arduino IDE. You're using a ridiculously outdated version of the Arduino IDE. Please try it again with the current Arduino IDE release: https://www.arduino.cc/en/Main/Software
What pert said. Marlin page states: "To build Marlin 2.0 you'll need Arduino IDE 1.8.8 or newer".
You're welcome. I hope it solves your problem. If you ever get curious about the reason you got that error with Arduino IDE 1.0.1, we'll be happy to explain. I didn't go into that because it's not actually necessary to understand the "why", only the "how" (which you now know).