Arduino:1.8.5 (Windows 7), 开发板:"WeMos D1 R1, 80 MHz, Flash, Enabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT:HT(unsigned char, unsigned char, unsigned char)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:13: multiple definition of `DHT:HT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT:HT(unsigned char, unsigned char, unsigned char)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:13: multiple definition of `DHT:HT(unsigned char, unsigned char, unsigned char)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:12: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::begin()':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:25: multiple definition of `DHT::begin()'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:24: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::convertCtoF(float)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:68: multiple definition of `DHT::convertCtoF(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:64: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::convertFtoC(float)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:73: multiple definition of `DHT::convertFtoC(float)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:69: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::computeHeatIndex(float, float, bool)':
"Blinker.h" 对应多个库
已使用: E:\arduino-1.8.5\libraries\Blinker
未使用:C:\Users\rain\Documents\Arduino\libraries\blinker-library-master
"DHT.h" 对应多个库
已使用: C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:103: multiple definition of `DHT::computeHeatIndex(float, float, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:92: first defined here
未使用:E:\arduino-1.8.5\libraries\DHT_sensor_library
"Hash.h" 对应多个库
已使用: C:\Users\rain\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0-beta2\libraries\Hash
未使用:E:\arduino-1.8.5\libraries\Hash
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::expectPulse(bool)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:255: multiple definition of `DHT::expectPulse(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:237: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::read(bool)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:134: multiple definition of `DHT::read(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:123: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::readTemperature(bool, bool)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:36: multiple definition of `DHT::readTemperature(bool, bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:35: first defined here
c:/users/rain/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: libraries\DHT-sensor-library-master\DHT.cpp.o: in function `DHT::readHumidity(bool)':
C:\Users\rain\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.cpp:76: multiple definition of `DHT::readHumidity(bool)'; libraries\Blinker\modules\dht\DHT.cpp.o:E:\arduino-1.8.5\libraries\Blinker\src\modules\dht/DHT.cpp:72: first defined here
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 WeMos D1 R1 编译时出错。
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
===================================================
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 WeMos D1 R1 编译时出错。
这是什么错误?
|