Wed 12 Sep 2007 09:21:08 AM UTC, comment #3:
Ok, it's check in. I also think it could be legitimate to use :
#define NO_SYS 0
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
Be example, you use tcpip (for timers and init) with loopback and ppp, and the raw api (something "like this" is done in the msvc port).
Ok, since, Mike has confirmed it's fixed, I close it.
|
Wed 12 Sep 2007 08:10:42 AM UTC, original submission:
I pulled lwip code from CVS on 12 Sep 2007 and tried to compile it, but compilation failed with error messages about undefined types.
Here are the relevant bits from my lwipopts.h:
#define NO_SYS 1
#define LWIP_RAW 1
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
Here are the lines where compilation fails:
>err_t tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg);
(file tcpip.h, line 77)
Error: unknown type sys_timeout_handler.
Apparently, the offending line should be wrapped in #if NO_SYS/#endif.
>LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF")
>LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN")
>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")
(file memp_std.h, line 46)
Error: undefined types netbuf, netconn, tcpip_msg.
Apparently, these lines should also use conditional compilation.
|