回复主题: Github上的手柄转接项目求助
作者:threek

posted by wap, platform: iPhone
问题解决了,原因是multidefinition。
quote]原帖由 micjil 于 2020-9-20 00:35 发表 http://club.tgfcer.com/images/common/back.gif



git项目根目录有.gitmodules文件,有这个文件就表示该项目会引用到其它git项目,直接clone或者下载zip会发现某些目录是空的,必须要再更新submodule才会下载缺失的文件。git submodule 具体细节可以上网搜索。如 ... [/quote]

在做另一个USB to DB15转接器编译遇到如下错误,还请教一下。 原文链接 https://www.arcade-projects.com/ ... apter/&pageNo=1
Github地址 https://github.com/Raphfriend/USB2DB15

Arduino:1.8.13 (Windows 10), 开发板:"Arduino Uno"



C:\Users\kof9xddt\AppData\Local\Temp\arduino_build_588202\libraries\RFUSB_to_DB15\drivers.cpp.o (symbol from plugin): In function `generateDPad(unsigned char, HIDController*)':

(.text+0x0): multiple definition of `setupController(unsigned int, unsigned int, HIDController*)'

C:\Users\kof9xddt\AppData\Local\Temp\arduino_build_588202\sketch\drivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

使用库 RFUSB_to_DB15 在文件夹: C:\Users\kof9xddt\Documents\Arduino\libraries\RFUSB_to_DB15 (legacy)

使用 1.3.2 版本的库 USB_Host_Shield_2.0-master 在文件夹: C:\Users\kof9xddt\Documents\Arduino\libraries\USB_Host_Shield_2.0-master

使用 1.0 版本的库 SPI 在文件夹: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

使用 2.0 版本的库 EEPROM 在文件夹: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM

exit status 1

为开发板 Arduino Uno 编译时出错。

本帖最后由 threek 于 2020-9-26 18:23 通过手机版编辑



[登录后才可回复]