This repository was archived by the owner on Jul 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
Error: Expected ')' before numeric constant (1.2.0.28) #169
Copy link
Copy link
Closed
Description
When using a standard building tool, the code at lines 98
and 100
of header file ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/net/LwIP/lwip-ver1.4.0.rc1/src/include/ipv4/lwip/ip_addr.h
on DevKit release 1.2.0.28:
/** 255.255.255.255 */
#define IPADDR_NONE ((u32_t)0xffffffffUL)
/** 127.0.0.1 */
#define IPADDR_LOOPBACK ((u32_t)0x7f000001UL)
throws the errors
In file included from ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/net/LwIP/lwip-ver1.4.0.rc1/src/include/lwip/sockets.h:43:0,
from ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/include/mico_socket.h:21,
from ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/include/mico.h:38,
from ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/EMW10xxInterface.h:22,
from main.cpp:12:
~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/net/LwIP/lwip-ver1.4.0.rc1/src/include/ipv4/lwip/ip_addr.h:98:37: Expected ')' before numeric constant
#define IPADDR_NONE ((u32_t)0xffffffffUL)
^
~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/net/LwIP/lwip-ver1.4.0.rc1/src/include/ipv4/lwip/inet.h:49:29: In expansion of macro 'IPADDR_NONE'
#define INADDR_NONE IPADDR_NONE
^
~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/cores/arduino/IPAddress.h:78:17: In expansion of macro 'INADDR_NONE'
const IPAddress INADDR_NONE(0,0,0,0);
^
Commenting the two lines 98
and 100
on header file ~/Library/Arduino15/packages/AZ3166/hardware/stm32f4/1.2.0/system/emw10xx-driver/mico/net/LwIP/lwip-ver1.4.0.rc1/src/include/ipv4/lwip/ip_addr.h
solves the issue.