Approximate icon indicating copy to clipboard operation
Approximate copied to clipboard

Compilation fails: some functions are not declared

Open Settordici opened this issue 1 year ago • 0 comments

The error code is:

c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate\PacketSniffer.cpp: In member function 'bool PacketSniffer::begin()': c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate\PacketSniffer.cpp:49:7: error: 'tcpip_adapter_init' was not declared in this scope 49 | tcpip_adapter_init(); | ^~~~~~~~~~~~~~~~~~ c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate\PacketSniffer.cpp:50:7: error: 'esp_event_loop_init' was not declared in this scope; did you mean 'esp_event_loop_run'? 50 | esp_event_loop_init(NULL, NULL); | ^~~~~~~~~~~~~~~~~~~ | esp_event_loop_run c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp: In member function 'wl_status_t Approximate::connectWiFi(char*, char*)': c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp:253:9: error: 'tcpip_adapter_init' was not declared in this scope 253 | tcpip_adapter_init(); | ^~~~~~~~~~~~~~~~~~ c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp:254:9: error: 'esp_event_loop_init' was not declared in this scope; did you mean 'esp_event_loop_run'? 254 | esp_event_loop_init(NULL, NULL); | ^~~~~~~~~~~~~~~~~~~ | esp_event_loop_run c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp:293:38: error: 'TCPIP_ADAPTER_IF_STA' was not declared in this scope 293 | if(tcpip_adapter_dhcpc_start(TCPIP_ADAPTER_IF_STA) == ESP_ERR_TCPIP_ADAPTER_DHCPC_START_FAILED){ | ^~~~~~~~~~~~~~~~~~~~ c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp:293:12: error: 'tcpip_adapter_dhcpc_start' was not declared in this scope 293 | if(tcpip_adapter_dhcpc_start(TCPIP_ADAPTER_IF_STA) == ESP_ERR_TCPIP_ADAPTER_DHCPC_START_FAILED){ | ^~~~~~~~~~~~~~~~~~~~~~~~~ c:\Users\User\Documents\Arduino\libraries\Approximate\src\Approximate.cpp:293:63: error: 'ESP_ERR_TCPIP_ADAPTER_DHCPC_START_FAILED' was not declared in this scope; did you mean 'ESP_ERR_ESP_NETIF_DHCPC_START_FAILED'? 293 | if(tcpip_adapter_dhcpc_start(TCPIP_ADAPTER_IF_STA) == ESP_ERR_TCPIP_ADAPTER_DHCPC_START_FAILED){ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ESP_ERR_ESP_NETIF_DHCPC_START_FAILED

Multiple functions are not declared

Settordici avatar Oct 30 '23 22:10 Settordici