“为开发板Arduino UNO编译时出错”怎么解决(有具体报错)?-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2205|回复: 1

[未解决] “为开发板Arduino UNO编译时出错”怎么解决(有具体报错)?

[复制链接]
发表于 2020-12-20 17:59 | 显示全部楼层 |阅读模式
C:\Users\Archi\Desktop\end\end.ino: In function 'void pplay(const char*)':

C:\Users\Archi\Desktop\end\end.ino:193:26: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive]

SdPlay.setFile(filename);

^

In file included from C:\Users\Archi\Desktop\end\end.ino:4:0:

C:\Users\Archi\Documents\Arduino\libraries\SimpleSDAudio/SimpleSDAudio.h:169:13: note: initializing argument 1 of 'boolean SdPlayClass::setFile(char*)'

boolean setFile(char *fileName);

^~~~~~~

libraries\Servo\avr\Servo.cpp.o (symbol from plugin): In function `ServoCount':

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

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

collect2.exe: error: ld returned 1 exit status

exit status 1

为开发板 Arduino Uno 编译时出错。
发表于 2020-12-21 14:09 | 显示全部楼层
In function 'void pplay(const char*)',,,void pplay(const char*),这个函数好像有问题,检查一下这里。带*号,这里是否是个指针,检查一下。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-29 17:30 , Processed in 0.102735 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表