[lwip-users] lwippools.h, building error with memp.h
From:
PHAM ANH THIEN
Subject:
[lwip-users] lwippools.h, building error with memp.h
Date:
Mon, 23 Aug 2010 23:21:47 +0700
Dear all,
I defined MEM_USE_POOLS=1 and MEMP_USE_CUSTOM_POOLS=1 in lwipopts.h, also created lwippools.h as below
#ifndef __LWIPPOOLS_H__ #define __LWIPPOOLS_H__
/* OPTIONAL: Pools to replace heap allocation
* Optional: Pools can be used instead of the heap for mem_malloc. If * so, these should be defined here, in increasing order according to * the pool element size. * * LWIP_MALLOC_MEMPOOL(number_elements, element_size)
*/ #if MEM_USE_POOLS LWIP_MALLOC_MEMPOOL_START LWIP_MALLOC_MEMPOOL(100, 256) LWIP_MALLOC_MEMPOOL(50, 512) LWIP_MALLOC_MEMPOOL(20, 1024) LWIP_MALLOC_MEMPOOL(20, 1536) LWIP_MALLOC_MEMPOOL_END #endif /* MEM_USE_POOLS */
/* Optional: Your custom pools can go here if you would like to use * lwIP's memory pools for anything else. */ //LWIP_MEMPOOL(SYS_MBOX, 22, 100, "SYS_MBOX") #endif /* __LWIPPOOLS_H__ */
But when i compile i got some error messages:
Error : (Serious) C2291E: <_expression_> expected but found ')' memp.h line 60
Error : (Serious) C2291E: <_expression_> expected but found ')'
memp.h line 69