用blinker库中的示例hello_wifi例子,用IDE直接验证,提示错误-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2741|回复: 3

[已解答] 用blinker库中的示例hello_wifi例子,用IDE直接验证,提示错误

[复制链接]
发表于 2019-3-20 09:50 | 显示全部楼层 |阅读模式
用blinker库中的示例hello_wifi例子,用IDE直接验证,提示错误,这个是怎么回事,求大神帮忙。下的最新的blinker库



Arduino:1.8.8 (Windows XP), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries D:\My Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10808 -build-path C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_25971 -warnings=none -build-cache C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_cache_554607 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool-2.5.0-3-20ed2b9.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\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:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose D:\My Documents\Arduino\libraries\blinker-library-master\examples\Blinker_Hello\Hello_WiFi\Hello_WiFi.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries D:\My Documents\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=disabled,eesz=4M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -ide-version=10808 -build-path C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_25971 -warnings=none -build-cache C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_cache_554607 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.esptool-2.5.0-3-20ed2b9.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\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:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9 -verbose D:\My Documents\Arduino\libraries\blinker-library-master\examples\Blinker_Hello\Hello_WiFi\Hello_WiFi.ino
Using board 'nodemcuv2' from platform in folder: C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.5.0
Using core 'esp8266' from platform in folder: C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.5.0
构建选项已变更,全部重新构建
Detecting libraries used...
"C:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\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:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/include" "-IC:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/lwip2/include" "-IC:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\arduino_build_25971/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 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10808 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\cores\\esp8266" "-IC:\\Documents and Settings\\Administrator\\Local Settings\\Application Data\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.0\\variants\\nodemcu" "C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\arduino_build_25971\\sketch\\Hello_WiFi.ino.cpp" -o nul
In file included from c:\documents and settings\administrator\local settings\application data\arduino15\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:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Arduino.h:257,

                 from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_25971\sketch\Hello_WiFi.ino.cpp:1:

c:\documents and settings\administrator\local settings\application data\arduino15\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-4-16 16:23 | 显示全部楼层
你看下DIE的板材库选择的参数对不对,我下午也遇到这个情况了,只要覆盖掉之后就可以,库文件的话,把解压包下的文件库剪切到库文件夹下就好了
发表于 2019-5-16 19:01 | 显示全部楼层
老哥我也失败了 你解决了么

点评

按文档操作,不会有问题,文档中有库的下载链接。 另外arduino更新库,要先把之前的删除,不能覆盖安装  详情 回复 发表于 2019-5-16 19:28
发表于 2019-5-16 19:28 | 显示全部楼层
yangjinpeng0415 发表于 2019-5-16 19:01
老哥我也失败了 你解决了么

按文档操作,不会有问题,文档中有库的下载链接。
另外arduino更新库,要先把之前的删除,不能覆盖安装
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-3 03:11 , Processed in 0.182805 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表