[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] MEM_USE_POOLS issue
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] MEM_USE_POOLS issue |
Date: |
Wed, 6 Nov 2019 08:32:06 +0100 |
"mtimm" <address@hidden> wrote:
> It looks like it stucked inside memp_priv.h inside typedef
> memp_pool_helper_t declaration. It is something wrong with the syntax. I am
> not sure how memp_priv.h and memp_std.h work and it is hard for me to
> eliminate this issue.
> I would like to work with static allocation which is available by using
> pools. Do I need both (memp_priv.h and memp_std.h) files including in my
> project?
No. The error is in your lwippools.h: you need to remove the include guards.
This file gets included multiple times with different defines set.
See our example here:
http://git.savannah.nongnu.org/cgit/lwip.git/tree/contrib/examples/example_app/lwippools.h
Regards,
Simon