Code: Select all
wifi_init_config_t wifi_cfg = WIFI_INIT_CONFIG_DEFAULT() ;
Have tried to replace the macro with is definitions directly in the source code, error remains exactly the same.CC build/main/application.o
In file included from C:/Dropbox/devs/ws/z-appl/ewm01/main/application.c:9:0:
C:/Dropbox/devs/ws/z-sdk/esp-idf/components/esp32/include/esp_wifi.h:150:25: error: initializer element is not constant
.wpa_crypto_funcs = g_wifi_default_wpa_crypto_funcs, \
^
C:/Dropbox/devs/ws/z-appl/ewm01/main/application.c:74:32: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t wifi_cfg = WIFI_INIT_CONFIG_DEFAULT() ;
^
C:/Dropbox/devs/ws/z-sdk/esp-idf/components/esp32/include/esp_wifi.h:150:25: note: (near initialization for 'wifi_cfg.wpa_crypto_funcs')
.wpa_crypto_funcs = g_wifi_default_wpa_crypto_funcs, \
^
C:/Dropbox/devs/ws/z-appl/ewm01/main/application.c:74:32: note: in expansion of macro 'WIFI_INIT_CONFIG_DEFAULT'
wifi_init_config_t wifi_cfg = WIFI_INIT_CONFIG_DEFAULT() ;
^
make[1]: *** [/c/Dropbox/devs/ws/z-sdk/esp-idf/make/component_wrapper.mk:229: application.o] Error 1
make: *** [/c/Dropbox/devs/ws/z-sdk/esp-idf/make/project.mk:391: component-main-build] Error 2
make: *** Waiting for unfinished jobs....
Any suggestions ?