Thanks to visit codestin.com
Credit goes to github.com

Skip to content

compilation error with ESP32 DIV Kit #97

Closed
@pran111

Description

@pran111

I Installed Ethernet 2.0.0 lib and try to compile example "webRepeatingClient" but it gaves following errors :

In file included from C:\Users\Akanksha\Documents\Arduino\libraries\Ethernet-2.0.0\examples\WebClientRepeating\WebClientRepeating.ino:26:0:

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:258:2: error: invalid abstract return type 'EthernetClient'

EthernetClient available();

^

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:214:7: note: because the following virtual functions are pure within 'EthernetClient':

class EthernetClient : public Client {

   ^

In file included from C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Arduino.h:157:0,

             from C:\Users\Akanksha\AppData\Local\Temp\arduino_build_517046\sketch\WebClientRepeating.ino.cpp:1:

C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Client.h:31:17: note: virtual int Client::connect(IPAddress, uint16_t, int)

 virtual int connect(IPAddress ip, uint16_t port, int timeout) =0;

             ^

C:\Users\Akanksha\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\cores\esp32/Client.h:32:17: note: virtual int Client::connect(const char*, uint16_t, int)

 virtual int connect(const char *host, uint16_t port, int timeout) =0;

             ^

In file included from C:\Users\Akanksha\Documents\Arduino\libraries\Ethernet-2.0.0\examples\WebClientRepeating\WebClientRepeating.ino:26:0:

E:\Pranit\ArduinoInstalled\Arduino\libraries\Ethernet\src/Ethernet.h:259:2: error: invalid abstract return type 'EthernetClient'

EthernetClient accept();

^

WebClientRepeating:38:16: error: cannot declare variable 'client' to be of abstract type 'EthernetClient'

EthernetClient client;

            ^

Can any one Face this issue.?

Screenshot_12

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