title: Arduino / esp8266: error: section attribute not allowed for 'Pchr
body: <p>My Arduino program had compiled and worked correctly but something happen or I did something because now when I compile it, I get an compiler error.  I have tried upgrading esp8266 v2.4.1 to 2.5.2 but then I get another error in the random.tcc header file.  I am compiling my code with Visual Studio 2017 with Visual Micro. I have seen this error on the web but upgrading didn't seem to help.</p>
  
  <p>Any suggestions?</p>
  
  <h2>OUTPUT</h2>
  
  <pre><code>Adafruit_ESP8266.cpp:17: In file included from
  
  Adafruit_ESP8266.h: 28:35: error: section attribute not allowed for 'Pchr
     typedef const PROGMEM char        Pchr; \\ Ditto, kindasorta
  </code></pre>
  
  <h2>SOURCE</h2>
  
  <pre><code>#include &lt;Adafruit_ESP8266.h&gt;
  
  #include &lt;ESP8266WiFi.h&gt;          //https://github.com/esp8266/Arduino
  
  //needed for library
  #include &lt;DNSServer.h&gt;
  #include &lt;ESP8266WebServer.h&gt;
  #include &lt;WiFiManager.h&gt;         //https://github.com/tzapu/WiFiManager
  
  
  // the setup function runs once when you press reset or power the board
  void setup()
  {
      Serial.println("Begin Setup");
  
  
      Serial.println("End Setup");
  }
  
  // the loop function runs over and over again until power down or reset
  void loop()
  {
      Serial.println("Begin Loop");
  
  
      Serial.println("End Loop");
  }
  </code></pre>