-
Notifications
You must be signed in to change notification settings - Fork 7.6k
error: expected ')' before numeric constant #define IPADDR_NONE ((u32_t)0xffffffffUL) #4405
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
You are missing ')' in that file ( in ip4_addr.h). |
@turkysha this is the line 63 of ip4_addr.h what do you think that i have to change |
my problem solved by below issue |
Hello @MarkEvens, I've stumbled upon the same error while trying to build an ESP-IDF component (coap) in my esp32 arduino/ESP-IDF mix project. Could you tell me how you resolved the issue? I'm asking this because the solution you linked is done on a different board. Thanks for the help. |
I face this too, although solved it by rearranging the order/locations of includes, since it appears different components are redefining the same symbols but in different ways. It might also be related to mixing C with C++ components. Usually this means extra code to safeguard has to be embedded. Unfortunately although now I'm following the same steps as I usually do, it's still not working. Does anybody know the exact systematic way to resolve this? In this case I believe the conflict is between Arduino and LwIP, as each defines IPADDR_NONE differently. I checked the actual location where the error is being reported. Syntactically, everything is correct. This is expected, otherwise nothing would ever have compiled, such that the developers would have had to fix it even before releasing it. I checked the link provided by @markevans, but they claim "will fix it soon". This was back in 2017. The problem still exists now. |
In case anyone else encounters this - the fix for me was to include the Arduino header first:
|
Thanks! Worked for me |
ESP-IDF 4.0.1 with Arduino as components
suddenly i got above title error and don't understand why i am changing nothing in component files.
directory for this file is : $HOME/esp/esp-idf/components/lwip/lwip/src/include/lwip/ip4_addr.h:63:37
The text was updated successfully, but these errors were encountered: