tuanpmt / esp_mqtt

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

dangerous relocation: call0: call target out of range: system_get_flash_size_map #142

Closed ddze7374 closed 7 years ago

ddze7374 commented 7 years ago

Instead of compiling the source files every time, I built a static library for the esp_mqtt. A try to link the library with a user_main function stops at a point with a message

gcc version 4.8.2 (GCC) ./lib/libesp_mqtt.a(rfinit.o): In functionuser_rf_cal_sector_set': rfinit.c:(.text+0x5): dangerous relocation: call0: call target out of range: system_get_flash_size_map

Do I have to select different bin file to link to or what ? `

bclouser commented 7 years ago

A couple things:

ddze7374 commented 7 years ago

I never had a problem in building the static library. Above message occurred when I tried linking the lib to an application. But the problem is gone (somehow). Thanks