Skip to content

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

Closed
MarkEvens opened this issue Oct 10, 2020 · 7 comments

Comments

@MarkEvens
Copy link

MarkEvens commented Oct 10, 2020

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

@turkysha
Copy link

You are missing ')' in that file ( in ip4_addr.h).

@MarkEvens
Copy link
Author

@turkysha
#define IPADDR_NONE ((u32_t)0xffffffffUL)

this is the line 63 of ip4_addr.h what do you think that i have to change

@MarkEvens
Copy link
Author

my problem solved by below issue
microsoft/azure-iot-developer-kit#169

@ameerhazo
Copy link

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.

@moefear85
Copy link

moefear85 commented Feb 11, 2022

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.

@awaters-meltin
Copy link

In case anyone else encounters this - the fix for me was to include the Arduino header first:

#include <WiFiUdp.h> // before lwip RE: https://github.com/espressif/arduino-esp32/issues/4405
#include <lwip/sockets.h>

@Magnatto
Copy link

In case anyone else encounters this - the fix for me was to include the Arduino header first:

#include <WiFiUdp.h> // before lwip RE: https://github.com/espressif/arduino-esp32/issues/4405
#include <lwip/sockets.h>

Thanks! Worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants