I'm trying define "ip_addr" from lwip. That's my code:
#include "lwip/tcp.h"
#include "ip_addr.h"
...
struct ip_addr ip;
But when i'm trying to compile this, compiler gives me error:
error: storage size of 'ip' isn't known
Try:
ip_addr_t ip;
and your second #include line should it not be:
#include "lwip/ip_addr.h"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.