Skip to content
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

Asio conflict with Arduino-esp32, because the Macro IPADDR_NONE (IDFGH-13808) #668

Open
3 tasks done
AI-Tipto opened this issue Oct 2, 2024 · 1 comment
Open
3 tasks done
Labels
Status: Opened Issue is new

Comments

@AI-Tipto
Copy link

AI-Tipto commented Oct 2, 2024

IDF: esp-idf v5.3.1
dependencies:
espressif/arduino-esp32: "^3.1.0-rc1"
espressif/asio: "^1.28.2"

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

D:/espressif/esp/v5.3.1/esp-idf/components/lwip/lwip/src/include/lwip/ip4_addr.h:63:37: error: expected
')' before numeric constant
63 | #define IPADDR_NONE ((u32_t)0xffffffffUL)
| ~ ^~~~~~~~~~~~
D:/espressif/esp/v5.3.1/esp-idf/components/lwip/lwip/src/include/lwip/inet.h:71:29: note: in expansion of macro 'IPADDR_NONE'
71 | #define INADDR_NONE IPADDR_NONE
| ^~~~~~~~~~~
D:/app/asio_test/components/arduino-esp32/cores/esp32/IPAddress.h:137:24: note: in expansion of macro 'INADDR_NONE'
137 | extern const IPAddress INADDR_NONE;

@github-actions github-actions bot changed the title Asio conflict with Arduino-esp32, because the Macro IPADDR_NONE Asio conflict with Arduino-esp32, because the Macro IPADDR_NONE (IDFGH-13808) Oct 2, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Oct 2, 2024
@AI-Tipto
Copy link
Author

AI-Tipto commented Oct 7, 2024

add
#ifdef INADDR_NONE #undef INADDR_NONE #endif

after #include "asio.hpp" before use Arduino library , can compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

2 participants