ESP8266WebServer.h, "functional: no such file or directory"

I tried installing the ESP8266WebServer library in the IDE platform. I got this "functional: no such file or directory" error. A bit of โ€œfunctionalโ€ research, http://www.cplusplus.com/reference/functional/

In file included from configMode.cpp:13:0: .pioenvs/uno/ESP8266WebServer/ESP8266WebServer.h:27:22: fatal error: functional: No such file or directory #include <functional> ^ compilation terminated. 
+7
source share
2 answers

The name of the library in most cases should start with a capital letter and end with .h .

In this case, I think it looks like this:

 #include <Functional.h> 
0
source

I had this problem, but I realized that the wrong board was installed in the Arduino IDE. If you have not installed the Arduino kernel for ESP8266 ( https://github.com/esp8266/Arduino#installing-with-boards-manager ), do this, then select the board you need in the Arduino IDE tool menu.

I now have other compiler errors though.

0
source

All Articles