Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

ARRAY_SIZE redefined between esp-idf and mongoose-os/common/platform.h? (arch esp32)

Hi, I'm trying to get the gattc_demo.c esp-idf example running in mongoose and when I try to build with mos I get;

In file included from /opt/Espressif/esp-idf/components/bt/bluedroid/hci/include/hci_layer.h:25:0,
from /opt/Espressif/esp-idf/components/bt/bluedroid/device/include/controller.h:28,
from /app/src/main.c:24:
/opt/Espressif/esp-idf/components/bt/bluedroid/osi/include/osi.h:9:0: error: "ARRAY_SIZE" redefined [-Werror]
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
^
In file included from /app/src/main.c:5:0:
/mongoose-os/common/platform.h:114:0: note: this is the location of the previous definition
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
^

Seems like the definition is doubled up between esp-idf and mongoose. Any clues on what I need to do?
Thanks,
Murray

Comments

Sign In or Register to comment.