|
From: | Neerav Patel |
Subject: | [lwip-users] MEMP_POOL_256 undeclared when enabling custom pools |
Date: | Wed, 4 Jan 2017 21:37:35 +0000 |
Hi
I am trying to use the latest lwip2.0 and use it with custom pools. I am using the following wiki document and followed it to the letter.
http://lwip.wikia.com/wiki/Custom_memory_pools
I added in lwipopts.h:
#define MEM_USE_POOLS 1
#define MEMP_USE_CUSTOM_POOLS 1
And created lwippools.h
LWIP_MALLOC_MEMPOOL_START
LWIP_MALLOC_MEMPOOL(50, 256)
LWIP_MALLOC_MEMPOOL(50, 512)
LWIP_MALLOC_MEMPOOL(50, 1512)
LWIP_MALLOC_MEMPOOL_END
After doing this I am running into the following error when trying to compile lwip2.0 with the microblaze compiler (gcc). "src/include/lwip/priv/memp_priv.h:101:42: error: 'MEMP_POOL_256' undeclared here (not in a function)"
How does one fix this issue.
Thanks in advance.
|
[Prev in Thread] | Current Thread | [Next in Thread] |