作者:漫步在太空 | 更新时间:2017-06-22 | 浏览量:2336
模仿LED灯程序在arduino IDE 1.6编译正常,1.8错误
错误如下:
Arduino:1.8.2 (Windows 10), 开发板:"Arduino/Genuino Uno"
In file included from D:\raduino\webled\webled.ino:9:0:
C:\Users\admin\Documents\Arduino\libraries\aJson/aJSON.h:92:6: error: conflicting return type specified for 'virtual int aJsonStream::flush()'
int flush();
^
In file included from C:\Users\admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino/Stream.h:26:0,
from C:\Users\admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino/HardwareSerial.h:29,
from C:\Users\admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino/Arduino.h:232,
from sketch\webled.ino.cpp:1:
C:\Users\admin\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.19\cores\arduino/Print.h:90:18: error: overriding 'virtual void Print::flush()'
virtual void flush() { /* Empty implementation for backward compatibility */ }
^
exit status 1