Component example #1316
-
Im using Esp-idf v5.4.0. I used the new Project Wizard and choose a template-app. I downloaded the esp_matter component using the esp-idf:show component registry. I added #include "esp_matter.h" to the main.c and changed to main.cpp. As a side note, i did get esp-matter installed using the guide here and was able to successfully build and talk to the light app using rainmaker. https://docs.espressif.com/projects/esp-matter/en/latest/esp32/developing.html#esp-matter-setup `#include <stdio.h> void app_main() |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Could you try add the property |
Beta Was this translation helpful? Give feedback.
-
That fixed it, thank you very much for the quick response. |
Beta Was this translation helpful? Give feedback.
Could you try add the property
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-DCHIP_HAVE_CONFIG_H" APPEND)
in the project's CmakeLists? And useextern "C" void app_main()
in main.cpp.