Skip to content

New builder doesn't like this previously working code #5

Closed
@pfeerick

Description

@pfeerick

I just tried the Arduino 1.6.6 nightly that I downloaded a few hours ago with some random code, and the new builder didn't like it. I've mutilated the blink example sketch to include the offending code, and the error message is shown below. The release versions of the IDE haven't had any problems with this code... so is this a builder error or a user error :) ?

Sample Code

struct sensorData {
  sensorData(int iStatus, float iTemp, float iMinTemp) : status(iStatus), temp(iTemp), minTemp(iMinTemp) {}
  sensorData() : status(-1), temp(1023.0), minTemp(1023.0) {}
  int status;
  float temp;
  float minTemp;
} ;

sensorData sensors[2];

sensorData sensor1; //(-1,1023.0,1023.0);
sensorData sensor2; //(-1,1023.0,1023.0);

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Compile Error Log

Arduino: 1.6.6 Hourly Build 2015/09/14 05:43 (Windows 10), Board: "Arduino/Genuino Uno"

sketch_sep15a:3: error: 'sensorData::sensorData(int, float, float)' cannot be overloaded

sketch_sep15a:3: error: with 'sensorData::sensorData(int, float, float)'

sketch_sep15a:4: error: 'sensorData::sensorData()' cannot be overloaded

sketch_sep15a:4: error: with 'sensorData::sensorData()'

exit status 1
'sensorData::sensorData(int, float, float)' cannot be overloaded

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions