写了程序在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中编译就出现上述问题 谁能点拨一下 需要改什么东西?