Skip to content

xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17' #937

Closed as not planned
@hajos118

Description

@hajos118

Describe the problem

"Verify" works, "upload" brings the error message:

xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17'

To reproduce

Sketch:

unsigned long previousMillis;

void setup() {
  Serial.begin(9600);
}

void loop() {
  if (Serial.available() > 0) {
    while (Serial.available() > 0) {
      Serial.write(Serial.read());
    }
    Serial.println();
  } else if (millis() - previousMillis >= 1000) {
    previousMillis = millis();
    Serial.println(random(100));
  }
}

CPU: LOLIN(WEMOS) D1 R2 & mini

Expected behavior

Works fine with old IDE

Arduino IDE version

IDE 2.0.0-rc5

Operating system

Windows

Operating system version

10

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions