-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Weird compilation error related to typedef dns_found_callback since version 3.2 #8920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Everything should be back to normal after you comment the declaration on this line: espconn backported from espressif is not widely used so we are not aware of every issues with it. Please tell us if this solves your issue. |
Hi d-a-v, Thanks for the workaround. Working pretty well now. I hope that this issue will be fixed in future releases. Best regards, Luis
|
EDIT: sorry just realized the following comment was intended for esphome rather than arduino, posted on the wrong thread but leaving it here in case any of this is helpful anway. FWIW this is still not fixed in esphome 2024.5.2, in so much as any attempt to #include espconn.h from a custom component will fail with this compile error. In case it's helpful for anyone else using espconn.h, rather rather than edit the SDK file (to comment out the line) I made the following hack in my own header file to workaround the issue at the place where I'm #including it.
|
Basic Infos
Platform
Settings in IDE
Problem Description
A weird compilation problem has appeared since version 3.2. It is related to typedef void (*dns_found_callback)(const char *name, ipv4_addr_t *ipaddr, void *callback_arg);
I get several compilation errors of this type: error: conflicting declaration 'typedef void (* dns_found_callback)(const char*, ip4_addr_t*, void*)'
Two files seem involved:
No compilation problem at all using release 3.0.2. None of my programs use the typedef dns_found_callback.
I would like to migrate to new releases, but I am unable to compile my project with the current toolchain & Arduino IDE.
The information provided by the compiler related to this error seem useless:
The text was updated successfully, but these errors were encountered: