On Thu, 29 May 2008, Bill Auerbach wrote:
These sizes (the array initializer) are #included by memp.c in memp_std.h.
My memp_std.h has NO_SYS wrappers:

#if NO_SYS==0
LWIP_MEMPOOL(TCPIP_MSG_API,  MEMP_NUM_TCPIP_MSG_API,   sizeof(struct
tcpip_msg),      "TCPIP_MSG_API")
LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct
tcpip_msg),      "TCPIP_MSG_INPKT")
#endif /* NO_SYS==0 */

Thanks Bill, my memp_std.h has NO_SYS wrappers as well, but memp.c does not. So the structure that causes the compile to fail is this one, in memp.c

static const u16_t memp_sizes[MEMP_MAX] = {
  sizeof(struct pbuf),
  sizeof(struct raw_pcb),
  sizeof(struct udp_pcb),
  sizeof(struct tcp_pcb),
  sizeof(struct tcp_pcb_listen),
  sizeof(struct tcp_seg),
  sizeof(struct netbuf),
  sizeof(struct netconn),
  sizeof(struct api_msg),
  sizeof(struct tcpip_msg),
  sizeof(struct sys_timeout)
};


Turning off LWIP_RAW causes a simpilar error for the "struct raw_pcb"
entry.  Of course I could just be doing something silly here...:)

--
Best Regards,
Robert

Fighting SPAM with Active Spam Filter, see:
http://a-s-k.sourceforge.net/


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to