极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 10347|回复: 0

求助 库文件问题

[复制链接]
发表于 2013-6-23 14:26:14 | 显示全部楼层 |阅读模式
写了程序在pcduino 0531 系统中arduino1.5.3beta 里面编译出现如下错误:
In file included from sketch_jan01a.ino:2:0:
/home/ubuntu/Arduino/libraries/SoftwareSerial/SoftwareSerial.h:92:18: error: conflicting return type specified for ‘virtual size_t SoftwareSerial::write(uint8_t)’
/usr/share/arduino/hardware/arduino/pcduino/cores/arduino/Print.h:47:17: error:   overriding ‘virtual int Print::write(byte)’
把库文件及里面的文件名字改了之后又出现了如下错误:

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.5.3_beta_pcDuino (Linux), Board: "pcDuino (ARM Cortex-A8)"
In file included from /usr/share/arduino/hardware/arduino/pcduino/cores/arduino/Stream.h:26:0,
                 from /home/ubuntu/Arduino/libraries/TestSerial/TestSerial.h:37,
                 from sketch_jan01b.ino:1:
/usr/share/arduino/hardware/arduino/pcduino/cores/arduino/Print.h:47:23: error: ‘byte’ has not been declared
sketch_jan01b.ino:4:12: error: cannot declare variable ‘mySerial’ to be of abstract type ‘TestSerial’
/home/ubuntu/Arduino/libraries/TestSerial/TestSerial.h:48:7: note:   because the following virtual functions are pure within ‘TestSerial’:
/usr/share/arduino/hardware/arduino/pcduino/cores/arduino/Print.h:47:17: note:         virtual int Print::write(int)
在其它版本的IDE中编译没有问题,但是在这个1.5.3中编译就出现上述问题 谁能点拨一下 需要改什么东西?
回复

使用道具 举报

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

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-7 00:18 , Processed in 0.038444 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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