查看: 437|回复: 2

ARDUINO编译时提示找不到bits/c++config.h

[复制链接]
发表于 2019-8-5 14:12 | 显示全部楼层 |阅读模式
在网上查了许多相关的问题,发现许多人有过类似的情况,但是至今没有看到有用的解决办法。想请问有没有类似问题并且解决的同学指导一下,谢谢。报错代码如下:

kittenblock中小学创客名师推荐的图形化编程软件

Arduino:1.8.9 (Windows 7), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

D:\SoftWare\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\SoftWare\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools D:\SoftWare\Arduino\tools-builder -tools D:\SoftWare\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries D:\SoftWare\Arduino\libraries -libraries C:\Users\KLM\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10809 -build-path C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild -warnings=none -build-cache C:\Users\KLM\AppData\Local\Temp\arduino_cache_506962 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\libraries\esp8266\examples\Blink\Blink.ino
D:\SoftWare\Arduino\arduino-builder -compile -logger=machine -hardware D:\SoftWare\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools D:\SoftWare\Arduino\tools-builder -tools D:\SoftWare\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries D:\SoftWare\Arduino\libraries -libraries C:\Users\KLM\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10809 -build-path C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild -warnings=none -build-cache C:\Users\KLM\AppData\Local\Temp\arduino_cache_506962 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\libraries\esp8266\examples\Blink\Blink.ino
Using board 'nodemcuv2' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2
Using core 'esp8266' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2
Detecting libraries used...
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/include" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/lwip2/include" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\KLM\\AppData\\Local\\Temp\\MW_ArduinoHWSetup\\MW_ArduinoBuild/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\cores\\esp8266" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\variants\\nodemcu" "C:\\Users\\KLM\\AppData\\Local\\Temp\\MW_ArduinoHWSetup\\MW_ArduinoBuild\\sketch\\Blink.ino.cpp" -o nul
In file included from c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\algorithm:60:0,

                 from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:257,

                 from C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild\sketch\Blink.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\utility:68:28: fatal error: bits/c++config.h: No such file or directory

 #include <bits/c++config.h>

                            ^

compilation terminated.

exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。


发表于 2019-8-5 15:11 | 显示全部楼层
至今没有看到有用的解决办法   www.tdszx.com  www.jyhxjm.com  www.gztpcj.com
 楼主| 发表于 2019-8-5 15:25 | 显示全部楼层
研究了几个小时,发现在路径C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\xtensa-lx106-elf\bits下存在有c++config.h这一头文件,把它添加到IDE报错信息中的地址成功解决了这一问题,但是又爆出了类似的问题,错误信息如下:

kittenblock中小学创客名师推荐的图形化编程软件

Arduino:1.8.9 (Windows 7), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

D:\SoftWare\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\SoftWare\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools D:\SoftWare\Arduino\tools-builder -tools D:\SoftWare\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries D:\SoftWare\Arduino\libraries -libraries C:\Users\KLM\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10809 -build-path C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild -warnings=none -build-cache C:\Users\KLM\AppData\Local\Temp\arduino_cache_839156 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\libraries\esp8266\examples\Blink\Blink.ino
D:\SoftWare\Arduino\arduino-builder -compile -logger=machine -hardware D:\SoftWare\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools D:\SoftWare\Arduino\tools-builder -tools D:\SoftWare\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries D:\SoftWare\Arduino\libraries -libraries C:\Users\KLM\Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10809 -build-path C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild -warnings=none -build-cache C:\Users\KLM\AppData\Local\Temp\arduino_cache_839156 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\python\3.7.2-post1 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\libraries\esp8266\examples\Blink\Blink.ino
Using board 'nodemcuv2' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2
Using core 'esp8266' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2
Detecting libraries used...
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/include" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/lwip2/include" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\KLM\\AppData\\Local\\Temp\\MW_ArduinoHWSetup\\MW_ArduinoBuild/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\cores\\esp8266" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019a\\3P.instrset\\arduinoide.instrset\\idepkgs\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\variants\\nodemcu" "C:\\Users\\KLM\\AppData\\Local\\Temp\\MW_ArduinoHWSetup\\MW_ArduinoBuild\\sketch\\Blink.ino.cpp" -o nul
In file included from c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\algorithm:61:0,

                 from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Arduino.h:257,

                 from C:\Users\KLM\AppData\Local\Temp\MW_ArduinoHWSetup\MW_ArduinoBuild\sketch\Blink.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:65:42: fatal error: bits/stl_iterator_base_types.h: No such file or directory

 #include <bits/stl_iterator_base_types.h>

                                          ^

compilation terminated.

exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。

这一回缺少的是这个文件stl_iterator_base_types.h。原因是stl_algobase.h这一头文件中所引用的stl_iterator_base_types不存在,但是我发现该文件和stl_algobase.h存在于同一个文件夹下。

两个头文件所在的文件夹内容

两个头文件所在的文件夹内容


该文件夹下不存在bits文件夹。

1564989629(1).jpg

后来我尝试把stl_algobase.h中#include <bits/stl_iterator_base_types.h>改为#include <stl_iterator_base_types.h>但是依然报错,现在束手无策,请各位论坛里的大佬指点。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热门推荐

Blynk与m5stack basic以及uiflow的交互玩法
Blynk与m5stack basic以及
Blynk与m5stack basic以及uiflow的交互玩法 [准备工作我们假设玩家已经熟悉下面的准备
Arduino Ter什么时候上市购买
Arduino Ter什么时候上市
一直没人问 那我就来问问好了 深爱 Arduino 但目前的开发板资源有限 简单的就比如现有
blinker无法对ESP8266下发指令
blinker无法对ESP8266下发
blinker端的数据键名称是与代码对应的,连接wifi特显示arduino在线,但按键的话把8266
helloWifi上传出错
helloWifi上传出错
板子:Node mcu 已下载Blinker库,已下载对应ESP8266库(图二) 问题描述:编译出错
APP
APP
哪位大佬有这款 App ,求apk
Copyright   ©2015-2016  Arduino中文社区  Powered by©Discuz!   
快速回复 返回顶部 返回列表