Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile ESP BLE MESH with CPP/C++ for ESP32 WROOM (IDFGH-6451) #8110

Closed
nitinbhosaleemb opened this issue Dec 17, 2021 · 3 comments
Closed
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@nitinbhosaleemb
Copy link

Compiler : esp-idf/Code/CMakeFiles/__idf_Code.dir/Main.cpp.obj
C:\Users\Nitin.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe

IDF Version: ESP-IDF v4.2.0

Logs :

^
../Code/Main.cpp:209:1: note: in expansion of macro 'ESP_BLE_MESH_MODEL_PUB_DEFINE'
ESP_BLE_MESH_MODEL_PUB_DEFINE(onoff_cli_pub, 2 + 1, MSG_ROLE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../esp32_common/esp-idf/components/bt/esp_ble_mesh/api/esp_ble_mesh_defs.h:433:5: warning: missing initializer for member 'esp_ble_mesh_model_pub_t::timer' [-Wmissing-field-initializers]
}
^
../Code/Main.cpp:209:1: note: in expansion of macro 'ESP_BLE_MESH_MODEL_PUB_DEFINE'
ESP_BLE_MESH_MODEL_PUB_DEFINE(onoff_cli_pub, 2 + 1, MSG_ROLE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../esp32_common/esp-idf/components/bt/esp_ble_mesh/api/esp_ble_mesh_defs.h:433:5: warning: missing initializer for member 'esp_ble_mesh_model_pub_t::dev_role' [-Wmissing-field-initializers]
}
^
../Code/Main.cpp:209:1: note: in expansion of macro 'ESP_BLE_MESH_MODEL_PUB_DEFINE'
ESP_BLE_MESH_MODEL_PUB_DEFINE(onoff_cli_pub, 2 + 1, MSG_ROLE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../esp32_common/esp-idf/components/bt/esp_ble_mesh/api/esp_ble_mesh_defs.h:433:5: error: designator order for field 'esp_ble_mesh_model_pub_t::msg' does not match declaration order in 'esp_ble_mesh_model_pub_t'
}
^
../Code/Main.cpp:209:1: note: in expansion of macro 'ESP_BLE_MESH_MODEL_PUB_DEFINE'
ESP_BLE_MESH_MODEL_PUB_DEFINE(onoff_cli_pub, 2 + 1, MSG_ROLE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Code/Main.cpp:209:31: warning: 'onoff_cli_pub' defined but not used [-Wunused-variable]
ESP_BLE_MESH_MODEL_PUB_DEFINE(onoff_cli_pub, 2 + 1, MSG_ROLE);
^~~~~~~~~~~~~
../esp32_common/esp-idf/components/bt/esp_ble_mesh/api/esp_ble_mesh_defs.h:429:37: note: in definition of macro 'ESP_BLE_MESH_MODEL_PUB_DEFINE'
static esp_ble_mesh_model_pub_t _name = {

@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 17, 2021
@github-actions github-actions bot changed the title Cannot compile ESP BLE MESH with CPP/C++ for ESP32 WROOM Cannot compile ESP BLE MESH with CPP/C++ for ESP32 WROOM (IDFGH-6451) Dec 17, 2021
@nitinbhosaleemb
Copy link
Author

any resolution?

@nitinbhosaleemb
Copy link
Author

nitinbhosaleemb commented Dec 21, 2021

@Alvin1Zhang @Campou

@InfiniteYuan
Copy link
Collaborator

@nitinbhosaleemb I'm going to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants