[英]lwip ip_addr - storage size of
I'm trying define "ip_addr" from lwip.我正在尝试从 lwip 定义“ip_addr”。 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 行不应该是:
#include "lwip/ip_addr.h"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.