简体   繁体   中英

lwip ip_addr - storage size of

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM