Hello, I have same problem. Where I should put return 1; source file?
Check my reply here: ShiftLCD library gives an error - #2 by pYro_65 - Programming Questions - Arduino Forum
Lots of posts below that explain the errors, also pauls has a reply which sum it up for you.
http://forum.arduino.cc/index.php?topic=99264.msg745686#msg745686
I notice on the library homepage a lot of people are having trouble with the 1.0 adjustment.
Here is a clone of the library which is fixed for all versions of the Arduino core.
Hi !!
I am a beginner in Arduino programming i wrote a program for Robotic Arm.
but As i included the ShiftLCD library files, The following errors are being displayed
Can anyone help me to debug these errors.
In file included from C:\Users\getapp1\Documents\Arduino\armprog\armprog.ino:55:0:
C:\Users\getapp1\Documents\Arduino\libraries\ShiftLCD/ShiftLCD.h:116:16: error: conflicting return type specified for 'virtual void ShiftLCD::write(uint8_t)'
virtual void write(uint8_t);
^
In file included from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Stream.h:26:0,
from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/HardwareSerial.h:29,
from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:232,
from sketch\armprog.ino.cpp:1:
C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Print.h:48:20: error: overriding 'virtual size_t Print::write(uint8_t)'
virtual size_t write(uint8_t) = 0;
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
but As i included the ShiftLCD library files
So, find a post-1.0 version of the library, or make the needed changes.
The write() method is inherited from the Print class, and must have a return type of size_t, and must actually return a value.