enc28j60+sal+lwip conflicting types for 'ip_addr_t'

Created at 2021-09-04 21:48:54

Hi,
I tried to configure the enc28j60 network chip, but came up on a conflict between lwip and sal. Both seem to try to config types:
conflicting types for 'ip_addr_t'
conflicting types for 'ip4_addr_t'
...

Did I do something wrong, or did I include wrong packages/drivers ?

br. Mike

更多

Follower
0
Views
582
xiangxistu
xiangxistu 2021-09-24

if you use "netdev" and "lwip", you maybe caught this problem.

Because both of "lwip" and "netdev" have defiened "ip_addr_t".
You should notice the driver of the enc28j60, make sure "netdev_ipaddr.h" and "lwip/ip_addr.h" can't be included at the same time.

1 Answer

Write Your Answer

Log in to publish your answer,Click here to log in.

Create
Post

Share