tuanpmt / esp_mqtt

MQTT client library for ESP8266
http://tuanpm.net/post/esp_mqtt/
MIT License
1.15k stars 401 forks source link

Error In function `wifi_check_ip' #80

Closed saytinh closed 8 years ago

saytinh commented 8 years ago

LD build/app.out build/app_app.a(wifi.o): In function wifi_check_ip': /home/saytinh/esp_mqtt/modules/wifi.c:57: undefined reference towifi_set_opmode_current' /home/saytinh/esp_mqtt/modules/wifi.c:57: undefined reference to wifi_station_set_config_current' /home/saytinh/esp_mqtt/modules/wifi.c:66: undefined reference towifi_set_opmode_current' /home/saytinh/esp_mqtt/modules/wifi.c:74: undefined reference to `wifi_station_set_config_current' collect2: error: ld returned 1 exit status make: *\ [build/app.out] Error 1

Dear all Guys,

I compile and received an error like above. Anyone can help me to resolve this issue. Thank so much

harryd100 commented 8 years ago

Are you using the latest esp_mqtt from github? I'm using this library for a long time now and don't see this error. Did you add #include "wifi.h" to your user_main.c?

saytinh commented 8 years ago

Thanks harryd100.

I resolved my issue. it's because not completed toolchain setup.