ESP8266WebServer.h,"功能:没有这样的文件或目录"

ken*_*ter 7 c++ arduino iot

我尝试将库ESP8266WebServer安装到platformio IDE中.我收到此错误"功能:没有这样的文件或目录".关于"功能"的一些研究,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.
Run Code Online (Sandbox Code Playgroud)

hyp*_*ers 5

就我而言,当我尝试时发生了同样的错误

#include <ESP8266WebServer.h>
Run Code Online (Sandbox Code Playgroud)

.c文件中。

它应该是.cpp以便编译时不会出现错误。


Fox*_*Lad 1

我遇到了这个问题,但意识到我在 Arduino IDE 中设置了错误的板。如果您尚未安装 ESP8266 的 Arduino 核心 ( https://github.com/esp8266/Arduino#installing-with-boards-manager ),请先安装,然后从 Arduino IDE 工具菜单中选择正确的板。

不过,我现在还有其他编译器错误。