453| 1
|
求救!对象文件出问题了! |
以下是报错内容: -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DArduino=10808 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="mpython" -DESP32 -DCORE_DEBUG_LEVEL=0 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\cores\esp32 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\variants\mpython -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\cores\esp32 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\variants\mpython -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_Servo -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_SerialMp3 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\libraries\SoftwareSerial -I C:\Users\Administrator\AppData\Local\DFScratch\extensions\nick-fingerprint-thirdex\arduinoC\libraries\Adafruit-Fingerprint-Sensor-Library C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp -o C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o C:\Program Files (x86)\Mind+\Arduino\hardware\tools\mpython\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc -nostdlib -L C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\lib -L C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\ld -T esp32_out.ld -T esp32.common.ld -T esp32.rom.ld -T esp32.peripherals.ld -T esp32.rom.libgcc.ld -T esp32.rom.spiram_incompatible_fns.ld -u ld_include_panic_highint_hdl -u call_user_start_cpu0 -Wl,--gc-sections -Wl,-static -Wl,--undefined=uxTopUsedPriority -u __cxa_guard_dummy -u __cxx_fatal_exception -Wl,--start-group C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o C:\Program Files (x86)\Mind+\Arduino\static\libraries\DFRobot_Servo\mpython\DFRobot_Servo.cpp.o C:\Program Files (x86)\Mind+\Arduino\static\libraries\DFRobot_SerialMp3\mpython\DFRobot_SerialMp3.cpp.o C:\Program Files (x86)\Mind+\Arduino\static\hardware\dfrobot\mpython\libraries\SoftwareSerial\mpython\SoftwareSerial.cpp.o C:\Users\Administrator\AppData\Local\DFScratch\extensions\nick-fingerprint-thirdex\arduinoC\libraries\Adafruit-Fingerprint-Sensor-Library\mpython\Adafruit_Fingerprint.cpp.o C:\Program Files (x86)\Mind+\Arduino\static\core\mpython\core.a -lgcc -lopenssl -lbtdm_app -lfatfs -lwps -lcoexist -lwear_levelling -lesp_http_client -lprotobuf-c -lhal -lnewlib -ldriver -lbootloader_support -lpp -lfreemodbus -lmesh -lsmartconfig -ljsmn -lwpa -lethernet -lphy -lapp_trace -lconsole -lulp -lwpa_supplicant -lfreertos -lbt -lmicro-ecc -lesp32-camera -lcxx -lxtensa-debug-module -ltcp_transport -lmdns -lvfs -lesp_ringbuf -lsoc -lcore -lfb_gfx -lsdmmc -llibsodium -lcoap -ltcpip_adapter -lprotocomm -lesp_event -limage_util -lc_nano -lesp-tls -lasio -lrtc -lspi_flash -lwpa2 -lwifi_provisioning -lesp32 -lface_recognition -lapp_update -lnghttp -lspiffs -lface_detection -lespnow -lnvs_flash -lesp_adc_cal -llog -ldl_lib -lsmartconfig_ack -lexpat -lm -lfr -lmqtt -lc -lheap -lmbedtls -llwip -lnet80211 -lesp_http_server -lpthread -ljson -lesp_https_ota -lfd -lstdc++ -Wl,--end-group -Wl,-EL -o C:\Users\Administrator\AppData\Local\DFScratch\build\dfrobot.ino.elf C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal._Z5setupv+0x2c): undefined reference to `Adafruit_Fingerprint::begin(HardwareSerial*, int, int, int)' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal._Z4loopv+0x0): undefined reference to `Adafruit_Fingerprint::getImage()' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal._Z4loopv+0x4): undefined reference to `Adafruit_Fingerprint::image2Tz(unsigned char)' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal._Z4loopv+0x8): undefined reference to `Adafruit_Fingerprint::fingerFastSearch()' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal.startup._GLOBAL__sub_I_mind_n_SuoCheZhuangTai+0x4): undefined reference to `Adafruit_Fingerprint::Adafruit_Fingerprint(unsigned int)' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o:(.literal.exit._GLOBAL__sub_D_mind_n_SuoCheZhuangTai+0x0): undefined reference to `Adafruit_Fingerprint::~Adafruit_Fingerprint()' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o: In function `setup()': C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:26: undefined reference to `Adafruit_Fingerprint::begin(HardwareSerial*, int, int, int)' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o: In function `loop()': C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:35: undefined reference to `Adafruit_Fingerprint::getImage()' C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:35: undefined reference to `Adafruit_Fingerprint::image2Tz(unsigned char)' C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:35: undefined reference to `Adafruit_Fingerprint::fingerFastSearch()' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o: In function `_GLOBAL__sub_I_mind_n_SuoCheZhuangTai': C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:18: undefined reference to `Adafruit_Fingerprint::Adafruit_Fingerprint(unsigned int)' C:\Users\Administrator\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.o: In function `_GLOBAL__sub_D_mind_n_SuoCheZhuangTai': C:\Users\Administrator\AppData\Local\DFScratch\cache/dfrobot.ino.cpp:19: undefined reference to `Adafruit_Fingerprint::~Adafruit_Fingerprint()' collect2.exe: error: ld returned 1 exit status 链接失败 网上查阅了一下,大概是在对象文件(.o 或 .obj)中对函数/对象定义不明确 有没有大佬出一下解决方案? |
© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed