I tried to create a simple Micro-Ros node that is a publisher on Teensy3.6 using micro_ros_arduino library as a dependency as it is mentioned in all the tutorials.
While compiling the code, there is an error that is thrown
"Compiling .pio\build\teensy36\libc62\NativeEthernet\NativeMdns.cpp.o
C:\Users\varug\.platformio\packages\framework-arduinoteensy\libraries\NativeEthernet\src\NativeEthernet.cpp: In static member function 'static int EthernetClass::begin(uint8_t*, long unsigned int, long unsigned int)':
C:\Users\varug\.platformio\packages\framework-arduinoteensy\libraries\NativeEthernet\src\NativeEthernet.cpp:126:30: error: 'FNET_CPU_ETH0_IF' was not declared in this scope
if(fnet_netif_init(FNET_CPU_ETH0_IF, mac, 6) != FNET_ERR){
^
C:\Users\varug\.platformio\packages\framework-arduinoteensy\libraries\NativeEthernet\src\NativeEthernet.cpp: In static member function 'static void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)':
C:\Users\varug\.platformio\packages\framework-arduinoteensy\libraries\NativeEthernet\src\NativeEthernet.cpp:258:30: error: 'FNET_CPU_ETH0_IF' was not declared in this scope
if(fnet_netif_init(FNET_CPU_ETH0_IF, mac, 6) != FNET_ERR){
^
*** [.pio\build\teensy36\libc62\NativeEthernet\NativeEthernet.cpp.o] Error 1
Compiling .pio\build\teensy36\libc62\NativeEthernet\Nativesocket.cpp.o"
This error is not occurring if I use teensy 4.1 as the platform board, but it comes for teensy3.6
This error also comes when I try to compile the example code given on the micro-ros tutorial.