有大佬知道这是为啥嘛,新人问-Arduino中文社区 - Powered by Discuz! Archiver

木西的木头 发表于 2019-10-11 14:01

有大佬知道这是为啥嘛,新人问

Arduino:1.8.5 (Windows 10), 开发板:"Arduino/Genuino Uno"

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::RFID(int, int)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::RFID(int, int)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::writeMFRC522(unsigned char, unsigned char)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::reset()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::readMFRC522(unsigned char)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::setBitMask(unsigned char, unsigned char)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::antennaOn()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::clearBitMask(unsigned char, unsigned char)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::antennaOff()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::init()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::calculateCRC(unsigned char*, unsigned char, unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::MFRC522ToCard(unsigned char, unsigned char*, unsigned char, unsigned char*, unsigned int*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::MFRC522Request(unsigned char, unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::isCard()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::anticoll(unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::readCardSerial()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::auth(unsigned char, unsigned char, unsigned char*, unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::read(unsigned char, unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::write(unsigned char, unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::selectTag(unsigned char*)'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':

(.text+0x0): multiple definition of `RFID::halt()'

sketch\RFID.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
为开发板 Arduino/Genuino Uno 编译时出错。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。


vany5921 发表于 2019-10-12 11:13

新人你应该直接发个截图
页: [1]
查看完整版本: 有大佬知道这是为啥嘛,新人问