arduino-upload icon indicating copy to clipboard operation
arduino-upload copied to clipboard

Main functions not defined

Open alexdrymonitis opened this issue 7 years ago • 3 comments
trafficstars

I installed the package on Ubunstu Studio 18.04, Atom 1.29.0. Trying to upload a test blink sketch I get:

undefined reference to 'setup'
undefined reference to 'loop'

I've set the path to my Arduino executable, which is 1.8.5 I also see that it's using an older version of the Arduino, 1.6.21, right? Can that be an issue?

alexdrymonitis avatar Aug 19 '18 08:08 alexdrymonitis

what is the arduino sketch you are trying to compile & upload?

Sorunome avatar Aug 19 '18 09:08 Sorunome

int ledPin = 13;

void setup() {
  pinMode(ledPin, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(200);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

alexdrymonitis avatar Aug 19 '18 10:08 alexdrymonitis

I also see that it's using an older version of the Arduino, 1.6.21, right? Can that be an issue?

Ordinarily it could, but I just compiled this on 1.8.5 without any issues. @alexdrymonitis Is this issue still present?

StaticRocket avatar Jan 05 '19 23:01 StaticRocket