Hi all,
For everyone looking for the solution of this issue.
The way finding exactly the error is do preprocess for memp.c file, then
look at typedef enum { ...} memp_pool_helper_t; preprocessor out file, you
will see exactly what the error happen.
For my case after i do this i see the error then i just comment out
//#ifndef __LWIPPOOLS_H__
//#define __LWIPPOOLS_H__ //#endif /* __LWIPPOOLS_H__ */ in file
lwippools.h, the error does not happen anymore.
Above is my solution, if anyone got difference solution please share.
Thanks a lot.
Thien
On Wed, Aug 25, 2010 at 1:32 AM, Bill Yang <[email protected]> wrote:
> Hi Thien,
>
>
>
> Sorry, I did not fix this compiling issue in lwIP source code. I am not
> working on this project any more so far.
>
>
>
> *Bill Yang***
>
> *Software Engineer**
> **
> **direct: +1 801.433.6354**
> **email:** [email protected] <[email protected]>*
>
> *
> **Parvus*
>
> *RUGGED SOLUTIONS for REAL WORLD APPLICATIONS*
>
> *USA** – 3222 S. Washington St. | Salt Lake City, Utah 84115 | Tel. +1** *
> *801.483.1533 | Fax +1** **801.483.1523 |**
> **www.parvus.com** *
>
> *A Member of EUROTECH GROUP*
> ------------------------------
>
> *From:* PHAM ANH THIEN [mailto:[email protected]]
> *Sent:* Tuesday, August 24, 2010 2:59 AM
> *To:* Bill Yang
> *Subject:* Re: [lwip-users] errors in memp.h
>
>
>
> hi Bill Yang,
>
> Now i am facing this problem like you, have you overcome it, could you
> please to share with me?
>
> thanks
> Thien
>
> On Wed, Mar 3, 2010 at 12:52 AM, Bill Yang <[email protected]> wrote:
>
> Hi,
>
>
>
> Can any one figure out the errors “\lwip-1.3.0\src\include\lwip/memp.h(60):
> error: #29: expected an expression” at the line after #include
> "lwip/memp_std.h" in memp.h file? This error comes when I defined
> MEM_USE_POOLS 1 and added a head file “lwippools.h” to compile.
>
>
>
> #if MEM_USE_POOLS
>
> /* Use a helper type to get the start and end of the user "memory pools"
> for mem_malloc */
>
> typedef enum {
>
> /* Get the first (via:
>
> MEMP_POOL_HELPER_START = ((u8_t) 1*MEMP_POOL_A + 0*MEMP_POOL_B +
> 0*MEMP_POOL_C + 0)*/
>
> MEMP_POOL_HELPER_FIRST = ((u8_t)
>
> #define LWIP_MEMPOOL(name,num,size,desc)
>
> #define LWIP_MALLOC_MEMPOOL_START 1
>
> #define LWIP_MALLOC_MEMPOOL(num, size) * MEMP_POOL_##size + 0
>
> #define LWIP_MALLOC_MEMPOOL_END
>
> #include "lwip/memp_std.h"
>
> ) ,
>
> /* Get the last (via:
>
> MEMP_POOL_HELPER_END = ((u8_t) 0 + MEMP_POOL_A*0 + MEMP_POOL_B*0 +
> MEMP_POOL_C*1) */
>
> MEMP_POOL_HELPER_LAST = ((u8_t)
>
> #define LWIP_MEMPOOL(name,num,size,desc)
>
> #define LWIP_MALLOC_MEMPOOL_START
>
> #define LWIP_MALLOC_MEMPOOL(num, size) 0 + MEMP_POOL_##size *
>
> #define LWIP_MALLOC_MEMPOOL_END 1
>
> #include "lwip/memp_std.h"
>
> )
>
> } memp_pool_helper_t;
>
>
>
> Thanks,
>
>
>
> *Bill Yang**
> **Software Engineer**
> **
> **direct: +1 801.433.6354**
> **email: [email protected] <by...@[email protected]>*
>
> *
> **Parvus*
>
> *RUGGED SOLUTIONS for REAL WORLD APPLICATIONS*
>
> *USA** – 3222 S. Washington St. | Salt Lake City, Utah 84115 | Tel. +1
> 801.483.1533 | Fax
> +1 801.483.1523 |**
> **www.parvus.com** *
>
> *A Member of EUROTECH GROUP*
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users