Hi all,
Here is prototype code I tried to compile with RTL8720 board.
#include <SPI.h>
#include <Ethernet.h>
void setup() {
}
void loop() {
}
I get the following error message:
In file included from C:\Users\M1\Desktop\WebServer2\WebServer2.ino:3:0:
C:\Users\M1\Documents\Arduino\libraries\Ethernet\src/Ethernet.h:152:32: error: expected class-name before '{' token
class EthernetUDP : public UDP {
^
In file included from C:\Users\M1\Desktop\WebServer2\WebServer2.ino:3:0:
C:\Users\M1\Documents\Arduino\libraries\Ethernet\src/Ethernet.h:185:15: error: type 'Print' is not a base type for type 'EthernetUDP'
using Print::write;
^~~~~
Multiple libraries were found for "Ethernet.h"
Used: C:\Users\M1\Documents\Arduino\libraries\Ethernet
Using library SPI at version 1.0.0 in folder:
C:\Users\M1\AppData\Local\Arduino15\packages\realtek\hardware\AmebaD\3.1.6\libraries\SPI
Using library Ethernet at version 2.0.2 in folder: C:\Users\M1\Documents\Arduino\libraries\Ethernet
exit status 1
Error compiling for board Ai-Thinker BW16 (RTL8720DN).
Please note that there is apparently a problem with using the <Ethernet.h> library, that I cannot understand.
Please help.
TIA