极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10489|回复: 0

求助编译错误

[复制链接]
发表于 2015-1-15 11:20:54 | 显示全部楼层 |阅读模式


.....
String myData = "";
.....
....
....
myData = mySerial.read();
.......
......
....

Arduino:1.5.5-r2 (Windows XP), 板:"Arduino Uno"

sketch_jan15c.ino: In function 'void loop()':
sketch_jan15c:18: error: ambiguous overload for 'operator=' in 'myData = mySerial.SoftwareSerial::read()'
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:86: note: candidates are: String& String:perator=(const String&) <near match>
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:87: note:                 String& String:perator=(const char*) <near match>
C:\Documents and Settings\Administrator\桌面\arduino-1.5.5-r2\hardware\arduino\avr\cores\arduino/WString.h:88: note:                 String& String:perator=(const __FlashStringHelper*) <near match>

  报告将会包含更多的信息
  "Show verbose output during compilation"
  在 文件>首选项 中启用


这个错误是什么意思?先谢了!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-17 10:59 , Processed in 0.046847 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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