undefined reference to `if_nametoindex' (IDFGH-12575) #13577
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.1.3-416-gd23b7a0361
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
if_nametoindex() should pass compilation.
What is the actual behavior?
compile error: undefined reference to `if_nametoindex'
Steps to reproduce.
Follow https://docs.espressif.com/projects/esp-idf/zh_CN/v5.1.2/esp32/api-reference/kconfig.html#config-lwip-netif-api to set CONFIG_LWIP_NETIF_API=y.
Add below code and compile:
int rc = if_nametoindex("sta0");
Then got compile error: undefined reference to `if_nametoindex'
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: