Sorunome / arduino-upload

Atom Package for those who don't like the Arduino IDE
https://atom.io/packages/arduino-upload
MIT License
34 stars 7 forks source link

Main functions not defined #56

Open alexdrymonitis opened 6 years ago

alexdrymonitis commented 6 years ago

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?

Sorunome commented 6 years ago

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

alexdrymonitis commented 6 years ago
int ledPin = 13;

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

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(200);
  digitalWrite(ledPin, LOW);
  delay(1000);
}
StaticRocket commented 5 years ago

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?