Skip to content

Compilation of examples/WebServer/WebServer.ino failed. #2

Description

@ooodwbooo

Compilation of examples/WebServer/WebServer.ino failed.

D:\318_P-Funics\03_SourceLibrary\M5PoECAM-W V1.1\M5PoECAM-1.0.1\examples\WebServer\WebServer.ino:33:16: error: cannot declare variable 'server' to be of abstract type 'EthernetServer'
33 | EthernetServer server(80);
| ^~~~~~
In file included from D:\318_P-Funics\03_SourceLibrary\M5PoECAM-W V1.1\M5PoECAM-1.0.1\examples\WebServer\WebServer.ino:21:
c:\Users\daiwenbo\Documents\Arduino\libraries\M5-Ethernet\src/M5_Ethernet.h:255:7: note: because the following virtual functions are pure within 'EthernetServer':
255 | class EthernetServer : public Server {
| ^~~~~~~~~~~~~~
In file included from C:\Users\daiwenbo\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\3.2.2\cores\esp32/Arduino.h:200,
from C:\Users\daiwenbo\AppData\Local\arduino\sketches\0449D11533E369536D64EDBF6C849E45\sketch\WebServer.ino.cpp:1:
C:\Users\daiwenbo\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\3.2.2\cores\esp32/Server.h:27:16: note: 'virtual void Server::begin()'
27 | virtual void begin() = 0;
| ^~~~~
exit status 1

Compilation error: cannot declare variable 'server' to be of abstract type 'EthernetServer'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions