代码之家  ›  专栏  ›  技术社区  ›  Theramax

如何在platformIO中链接stdc++库

  •  0
  • Theramax  · 技术社区  · 9 年前

    我正在使用platformIO为esp8266开发,而platformIO又使用esp8266arduino内核。默认构建没有链接到stdc++库,因此我无法使用std:map。通过修改链接器设置,我可以在arduino IDE中成功编译草图 here ,我只需要在平台IO中实现相同的事情。我已经尝试在espressif中将“stdc++”添加到LIBS数组中。pybuilder脚本无效。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Theramax    9 年前

    问题是由于库链接顺序导致的PlatformIO错误。其中一名团队成员编写了一个修复程序,很可能很快就会合并到主发行版中。详细信息和工作构建的链接 here .