Hello, Currently I am working in FRDM K66f Microcontroller and how to use EthernetInterface library for this controller?

I want to accept the data through Ethernet via socket communication ? But while using EthernetInteface library its shows the error.

But while using EthernetInteface library its shows the error.

What kind of error? You should not have to add any library. Just use:

#include "mbed.h"
#include "EthernetInterface.h"

int main() {
    EthernetInterface eth;
    eth.connect();