Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By martinayotte
#47690 Deuhh ???
Are you developing code for ESP8266 or for Arduino UNO ?
I think you are mixing up things here ! :o
Don't expect ESP code to compile for UNO, that why is you are getting all those errors since the compiler doesn't look at all in the ESP include folders ... :ugeek:
User avatar
By Jeddiah
#47694
martinayotte wrote:Deuhh ???
Are you developing code for ESP8266 or for Arduino UNO ?
I think you are mixing up things here ! :o
Don't expect ESP code to compile for UNO, that why is you are getting all those errors since the compiler doesn't look at all in the ESP include folders ... :ugeek:


Is this not Arduino Code?
Code: Select all#include <ESP8266WiFi.h>
#define SSID "ssid"
#define PASS_SSID "password"
#define HOST "192.168.1.1"
WiFiClient client;

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}


It's just a simple example that I pulled from, I believe a thread here. It calls the ESP8266Wifi library.
User avatar
By Jeddiah
#47698 Fresh install of 1.6.9 and the ESP8266 package and the Generic ESP8266 Selected, I get this,:

(I did edit out part of the path in the error message posted here)


Code: Select allArduino: 1.6.9 (Windows XP), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

In file included from \arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:62:0,

                 from \Arduino15\packages\esp8266\hardware\esp8266\2.3.0-rc1\libraries\ESP8266WiFi\src/WiFiClient.h:24,

                 from \Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.3.0-rc1\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39,

                 from \Arduino\ESP8266_Test\ESP8266_Test.ino:1:

\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory

 #include <bits/c++config.h>

                            ^

compilation terminated.

exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This is all the sketch is made of.
[code]#include <ESP8266WiFi.h>




void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}