me-no-dev / ESPAsyncUDP

Async UDP library for ESP8266
173 stars 56 forks source link

compile Error - even with examples. #13

Closed sticilface closed 5 years ago

sticilface commented 7 years ago

get the following just compiling the original examples

In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/lwip/include/lwip/inet.h:37:0,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:7:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/lwip/include/lwip/ip_addr.h:44:8: error: redefinition of 'struct ip_addr'
 struct ip_addr {
        ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/user_interface.h:13:0,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:5:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/ip_addr.h:6:8: error: previous definition of 'struct ip_addr'
 struct ip_addr {
        ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/esp8266_peri.h:24:0,
                 from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/Arduino.h:38,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:1:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/c_types.h:68:67: error: declaration of C function 'u32_t ipaddr_addr(const char*)' conflicts with
 #define ICACHE_FLASH_ATTR   __attribute__((section(".irom0.text")))
                                                                   ^
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/lwip/include/lwip/ip_addr.h:234:34: note: in expansion of macro 'ICACHE_FLASH_ATTR'
 u32_t ipaddr_addr(const char *cp)ICACHE_FLASH_ATTR;
                                  ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/user_interface.h:13:0,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:5:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/ip_addr.h:54:8: error: previous declaration 'uint32 ipaddr_addr(const char*)' here
 uint32 ipaddr_addr(const char *cp);
        ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/lwip/include/lwip/inet.h:37:0,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:7:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/lwip/include/lwip/ip_addr.h:247:8: error: redefinition of 'struct ip_info'
 struct ip_info {
        ^
In file included from /Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/user_interface.h:13:0,
                 from /Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:5:
/Applications/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/tools/sdk/include/ip_addr.h:12:8: error: previous definition of 'struct ip_info'
 struct ip_info {
        ^
/Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp: In member function 'bool AsyncUDP::listenMulticast(ip_addr_t*, uint16_t, uint8_t)':
/Users/amelvin/Documents/Arduino/libraries/ESPAsyncUDP/src/AsyncUDP.cpp:249:36: error: 'udp_set_multicast_ttl' was not declared in this scope
     udp_set_multicast_ttl(_pcb, ttl);
                                    ^
me-no-dev commented 7 years ago

esp8266-arduino is not git ;)

RudyFiero commented 7 years ago

@ sticilface see https://github.com/me-no-dev/ESPAsyncUDP/issues/4

You must run git and then it works.

stale[bot] commented 5 years ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.