but the link gives me a permission error.Teensy 4.1 ethernet :: https://forum.pjrc.com/threads/59776-Ethernet-and-lwip
Added this for this machine to boards.txt: teensy41.build.flags.common=-g -Wall -ffunction-sections -fdata-sections -nostdlib -IT:\tCode\libraries\lwip\src\include
I thought it was the hack problem but I edited boards.txt with the change and still get the error. maybe it's something else? It looks like there are the wrong number of arguments to enet_init based on lwip_t41.h.lwip_websrv:191: error: cannot convert 'uint8_t* {aka unsigned char*}' to 'ip_addr_t* {aka ip4_addr*}' for argument '2' to 'void enet_init(ip_addr_t*, ip_addr_t*, ip_addr_t*)'
enet_init(PHY_ADDR, mac, &ip, &mask, &gateway);
^
Using library lwip at version 2.0.2 in folder: D:\Documents\Arduino\libraries\lwip
cannot convert 'uint8_t* {aka unsigned char*}' to 'ip_addr_t* {aka ip4_addr*}' for argument '2' to 'void enet_init(ip_addr_t*, ip_addr_t*, ip_addr_t*)'
teensy41.build.flags.common=-g -Wall -ffunction-sections -fdata-sections -nostdlib -ID:\Documents\Arduino\libraries\lwip\src\include