I am using the Arduino IDE to program the ESP8266 and wanted to use the std::unordered_map.
All my code does is:
#include <unordered_map>
std::unordered_map<char, int> letter_counts {{'a', 27}, {'b', 3}, {'c', 1}};
void setup() {
}
void loop() {
// put your main code here, to run repeatedly:
}
I included the header file....and got various link failures. One suggestion I saw in the forum was to add the "-lstdc++" to the end of the "compiler.c.elf.libs" in the platform.txt.
I did this and I now get a different compiler error as below. Any ideas what is going wrong?
c:/users/dell/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libstdc++.a(hashtable_c++0x.o): In function `std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned int) const':
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:60:(.text._ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEj+0x7d): dangerous relocation: call0: call target out of range: ceil
c:/users/dell/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libstdc++.a(hashtable_c++0x.o): In function `std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned int, unsigned int, unsigned int) const':
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:84:(.text._ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEjjj+0x5a): dangerous relocation: call0: call target out of range: floor
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:88:(.text._ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEjjj+0x91): dangerous relocation: call0: call target out of range: floor
collect2.exe: error: ld returned 1 exit status
Error compiling.
Below is the complete output of the verbose compile. As can be seen the -lstdc++ is present:
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\adafruit C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\test_stl.cpp -o C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\test_stl.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/include -c -g -x assembler-with-cpp -MMD -DF_CPU=80000000L -DARDUINO=10605 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266 -IC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\variants\adafruit C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266\cont.S -o C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\cont.S.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\cont_util.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_eboot_command.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_flash_utils.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_i2s.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_noniso.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_phy.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_postmortem.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_si2c.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_timer.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_analog.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_digital.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_pulse.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_pwm.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_shift.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\libc_replacements.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_cache.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_check.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_gc.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_hydrogen.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_nucleus.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\time.c.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\abi.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_main.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\debug.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Esp.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\FS.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\IPAddress.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\MD5Builder.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\pgmspace.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Print.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_api.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_hal.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Stream.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\StreamString.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Tone.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Updater.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\WMath.cpp.o
Using previously compiled file: C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\WString.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\cont.S.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\cont_util.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_eboot_command.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_flash_utils.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_i2s.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_noniso.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_phy.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_postmortem.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_si2c.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_timer.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_analog.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_digital.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_pulse.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_pwm.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_wiring_shift.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\libc_replacements.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_cache.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_check.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_gc.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_hydrogen.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_nucleus.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\time.c.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\abi.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\core_esp8266_main.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\debug.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Esp.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\FS.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\HardwareSerial.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\IPAddress.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\MD5Builder.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\pgmspace.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Print.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_api.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\spiffs_hal.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Stream.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\StreamString.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Tone.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\Updater.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\WMath.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-ar cru C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\WString.cpp.o
C:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-gcc -g -Os -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -LC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/lib -LC:\Users\dell\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.0.0/tools/sdk/ld -Teagle.flash.4m.ld -Wl,--gc-sections -Wl,-wrap,system_restart_local -Wl,-wrap,register_chipv6_phy -o C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/test_stl.cpp.elf -Wl,--start-group C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp\test_stl.cpp.o C:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp/arduino.ar -lm -lgcc -lhal -lphy -lnet80211 -llwip -lwpa -lmain -lpp -lsmartconfig -lwps -lcrypto -laxtls -lstdc++ -Wl,--end-group -LC:\Users\dell\AppData\Local\Temp\build365299809116152627.tmp
c:/users/dell/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libstdc++.a(hashtable_c++0x.o): In function `std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned int) const':
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:60:(.text._ZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEj+0x7d): dangerous relocation: call0: call target out of range: ceil
c:/users/dell/appdata/roaming/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/lib\libstdc++.a(hashtable_c++0x.o): In function `std::__detail::_Prime_rehash_policy::_M_need_rehash(unsigned int, unsigned int, unsigned int) const':
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:84:(.text._ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEjjj+0x5a): dangerous relocation: call0: call target out of range: floor
d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libstdc++-v3\src\c++11/../../../../../libstdc++-v3/src/c++11/hashtable_c++0x.cc:88:(.text._ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEjjj+0x91): dangerous relocation: call0: call target out of range: floor
collect2.exe: error: ld returned 1 exit status
Error compiling.