title: How to fix xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17' error on Arduino IDE
body: <p>This is my first time using Arduino IDE, and this is my code: I am trying to use the SendDemo sketch from RCSwitch on my NodeMCU board (ESP-12E), with the following configuration,</p>
  <ol>
  <li>Select; Tools -&gt; Board: -&gt; (Select the board of your choice). 'Generic ESP8266 Module'</li>
  <li>Select; Tools -&gt; Flash Mode: -&gt; 'DIO'</li>
  <li>Select; Tools -&gt; Flash Frequency: -&gt; '40MHz'</li>
  <li>Select; Tools -&gt; CPU Frequency: -&gt; '80 MHz'</li>
  <li>Select; Tools -&gt; Flash Size: -&gt; '512K (64K SPIFFS)'</li>
  <li>Select; Tools -&gt; Debug Port: -&gt; 'Disabled'</li>
  <li>Select; Tools -&gt; Debug Level: -&gt; 'None'</li>
  <li>Select; Tools -&gt; Reset Method: -&gt; 'ck'</li>
  <li>Select; Tools -&gt; Upload Speed: -&gt; '115200'</li>
  </ol>
  <p>I keep receiving the error, <code>xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17' exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). </code>What should I do?</p>
  <pre><code> /*
    Example for different sending methods
    
    https://github.com/sui77/rc-switch/
    
  */
  
  #include &lt;RCSwitch.h&gt;
  
  RCSwitch mySwitch = RCSwitch();
  
  void setup() {
  
    Serial.begin(9600);
    
    // Transmitter is connected to Arduino Pin #10  
    mySwitch.enableTransmit(10);
    
    // Optional set protocol (default is 1, will work for most outlets)
    // mySwitch.setProtocol(2);
  
    // Optional set pulse length.
    // mySwitch.setPulseLength(320);
    
    // Optional set number of transmission repetitions.
    // mySwitch.setRepeatTransmit(15);
    
  }
  
  void loop() {
  
    /* See Example: TypeA_WithDIPSwitches */
    mySwitch.switchOn(&quot;11111&quot;, &quot;00010&quot;);
    delay(1000);
    mySwitch.switchOff(&quot;11111&quot;, &quot;00010&quot;);
    delay(1000);
  
    /* Same switch as above, but using decimal code */
    mySwitch.send(5393, 24);
    delay(1000);  
    mySwitch.send(5396, 24);
    delay(1000);  
  
    /* Same switch as above, but using binary code */
    mySwitch.send(&quot;010100010001010100110011&quot;);
    delay(1000);  
      mySwitch.send(&quot;010100010001010100110011&quot;);
    delay(1000);
  
    /* Same switch as above, but tri-state code */ 
    mySwitch.sendTriState(&quot;00000FFF0F0F&quot;);
    delay(1000);  
    mySwitch.sendTriState(&quot;00000FFF0FF0&quot;);
    delay(1000);
  
    delay(20000);
  }
  </code></pre>