-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
Comments
Hi @AxelLin, For a workaround you can use |
espressif-bot
pushed a commit
that referenced
this issue
Jul 3, 2024
espressif-bot
pushed a commit
that referenced
this issue
Jul 3, 2024
espressif-bot
pushed a commit
that referenced
this issue
Jul 4, 2024
espressif-bot
pushed a commit
that referenced
this issue
Aug 7, 2024
eshjordan
pushed a commit
to eshjordan/esp-idf
that referenced
this issue
Sep 27, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
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: