为开发板 Arduino Uno 编译时出错。
D:\Arduino\arduino-builder -dump-prefs -logger=machine -hardware D:\Arduino\hardware -tools D:\Arduino\tools-builder -tools D:\Arduino\hardware\tools\avr -built-in-libraries D:\Arduino\libraries -libraries C:\Users\THINK\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\THINK\AppData\Local\Temp\arduino_build_393239 -warnings=none -build-cache C:\Users\THINK\AppData\Local\Temp\arduino_cache_503020 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=D:\Arduino\hardware\tools\avr -verbose C:\Users\THINK\Desktop\______\______.inoD:\Arduino\arduino-builder -compile -logger=machine -hardware D:\Arduino\hardware -tools D:\Arduino\tools-builder -tools D:\Arduino\hardware\tools\avr -built-in-libraries D:\Arduino\libraries -libraries C:\Users\THINK\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\THINK\AppData\Local\Temp\arduino_build_393239 -warnings=none -build-cache C:\Users\THINK\AppData\Local\Temp\arduino_cache_503020 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=D:\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=D:\Arduino\hardware\tools\avr -verbose C:\Users\THINK\Desktop\______\______.ino
Using board 'uno' from platform in folder: D:\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: D:\Arduino\hardware\arduino\avr
Detecting libraries used...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-ID:\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\sketch\\______.ino.cpp" -o nul
Generating function prototypes...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-ID:\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\sketch\\______.ino.cpp" -o "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"D:\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\preproc\\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-ID:\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-ID:\\Arduino\\hardware\\arduino\\avr\\variants\\standard" "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\sketch\\______.ino.cpp" -o "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\sketch\\______.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\THINK\AppData\Local\Temp\arduino_cache_503020\core\core_arduino_avr_uno_fd040c28ca717db04400ddff4ecd4334.a
Linking everything together...
"D:\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239/______.ino.elf" "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239\\sketch\\______.ino.cpp.o" "C:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239/..\\arduino_cache_503020\\core\\core_arduino_avr_uno_fd040c28ca717db04400ddff4ecd4334.a" "-LC:\\Users\\THINK\\AppData\\Local\\Temp\\arduino_build_393239" -lm
C:\Users\THINK\AppData\Local\Temp\ccoGNsXc.ltrans0.ltrans.o: In function `global constructors keyed to 65535_0_______.ino.cpp.o.1784':
<artificial>:(.text.startup+0x60): undefined reference to `IRrecv::IRrecv(int)'
C:\Users\THINK\AppData\Local\Temp\ccoGNsXc.ltrans0.ltrans.o: In function `setup':
C:\Users\THINK\Desktop\______/______.ino:13: undefined reference to `IRrecv::enableIRIn()'
C:\Users\THINK\AppData\Local\Temp\ccoGNsXc.ltrans0.ltrans.o: In function `loop':
C:\Users\THINK\Desktop\______/______.ino:18: undefined reference to `IRrecv::decode(decode_results*)'
C:\Users\THINK\Desktop\______/______.ino:32: undefined reference to `IRrecv::resume()'
collect2.exe: error: ld returned 1 exit status
exit status 1
为开发板 Arduino Uno 编译时出错。
从zip文件解压的IRremote文件夹要放在arduino根目录/libraries里,不能和源程序放在一起
页:
[1]