Kit version (for WroverKit/PicoKit/DevKitC): [v1|v2|v3|v4]
Module or chip used: |ESP32-WROOM-32D|
IDF version (run git describe --tags to find it):
v4.1-dev-1086-g93a8603c5-dirty
Build System: [CMake]
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
xtensa-esp32-elf-gcc (crosstool-NG esp-2019r2) 8.2.0
Operating System: [|Linux|]
Power Supply: [USB]
Problem Description
When i to migrate code to ESP-IDF 4 and use esp_netif, got issue in compilation for expansion macro doesn't match
//Detailed problem description goes here.
Compile Message Error :
/home/esp/esp-idf/components/esp_netif/include/esp_netif_defaults.h:50:5: error: designator order for field 'esp_netif_config::driver' does not match declaration order in 'esp_netif_config_t' {aka 'esp_netif_config'} } ^
Expected Behavior
After check in esp_netif_style.h header file found :
Is it cause for base,driver,stack order different?
Which one is correct?
if not caused by order different, let us know how to solve it.
Steps to repropduce
just run build
...
Debug Logs
/home/esp/esp32-project/XGmmp_IDF4/main/app_main.cpp:471:39: note: in expansion of macro 'ESP_NETIF_DEFAULT_WIFI_STA'
esp_netif_config_t netif_config = ESP_NETIF_DEFAULT_WIFI_STA();
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/esp/esp-idf/components/esp_netif/include/esp_netif_defaults.h:50:5: error: designator order for field 'esp_netif_config::driver' does not match declaration order in 'esp_netif_config_t' {aka 'esp_netif_config'}
}
^
Environment
git describe --tags
to find it): v4.1-dev-1086-g93a8603c5-dirtyxtensa-esp32-elf-gcc --version
to find it): xtensa-esp32-elf-gcc (crosstool-NG esp-2019r2) 8.2.0Problem Description
When i to migrate code to ESP-IDF 4 and use esp_netif, got issue in compilation for expansion macro doesn't match //Detailed problem description goes here. Compile Message Error :
/home/esp/esp-idf/components/esp_netif/include/esp_netif_defaults.h:50:5: error: designator order for field 'esp_netif_config::driver' does not match declaration order in 'esp_netif_config_t' {aka 'esp_netif_config'} } ^
Expected Behavior
After check in esp_netif_style.h header file found :
and esp_netif_default.h file :
Actual Behavior
Is it cause for base,driver,stack order different? Which one is correct? if not caused by order different, let us know how to solve it.
Steps to repropduce
Debug Logs