Sming 2.1.0(Windows 7 SP1)で開発中のESP8266ファームウェアでstd :: mapを使用しようとしています。とリンクするライブラリのリストにこのhttp://www.esp8266.com/viewtopic.php?p=40593によるSming IDE(ESP8266)でstd :: mapを使用する方法はありますか?
undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
このESP8266 for Arduino IDE (xtensa-lx106-elf-gcc) and std::map linking error 1は、(++および潜在的に-lsupc)-lstdC++を追加する必要があります は、私はエラーを次のよう持っています。
しかし、SmingのMakefile-project.mkには、-nostdlibフラグがあります。
LDFLAGS = -nostdlib ...
私はそれを変更した場合に-lstdC++ -lsupC++、私が代わりにこれらのエラーを持っている:
Try using the -nostdlib link option.
ブリリアント:
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find crt1-sim.o: No such file or directory
c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/5.1.0/../../../../xtensa-lx106-elf/bin/ld.exe: cannot find _vectors.o: No such file or directory
そして、ここでhttps://www.reddit.com/r/esp8266/comments/3pmyx8/trying_to_link_but_getting_weird_errors/これを解決するには、以下のお勧め!
私はArduinoの-esp8266 https://github.com/rogerclarkmelbourne/arduino-esp8266/tree/master/tools/xtensa-lx106-elfからのXtensa-lx106エルフを使用しようとしました(それはCRT1-sim.o、_vectors.oなどLIBSを含みます)が、それは助けません。
私は最終的な答えを見つけられませんでした: "もしSmingでstd :: mapなどを使う方法があれば?"
ご協力いただきありがとうございます。