I am using the Ethernetinterface library and I am getting an error in socket.h.
Click on the error number and it will say Header Guard Error as shown.
#ifndef SOCKET_H_
#define SOCKET_H_ already exists.
Hello,
the Online compiler does not have access to MbedOS sources, Socket.h is not accesable. It looks like you use Mbed OS with an old Ethernet Interface library, but Mbed OS already includes Ethernet Interface and additional library is not needed.
Connectivity - API references and tutorials | Mbed OS 6 Documentation
BR, Jan