LiquidCrystal library issue on arduino-0012 Linux

Hey guys :slight_smile:

arduino-0012 on Linux is failing to compile code using the LiquidCrystal library with the following errors.

/arduino/arduino-0012/hardware/cores/arduino/Print.h:32: warning: 'class Print' has virtual functions but non-virtual destructor
LiquidCrystal.h:7: warning: 'class LiquidCrystal' has virtual functions but non-virtual destructor
/arduino/arduino-0012/hardware/cores/arduino/HardwareSerial.h:28: warning: 'class HardwareSerial' has virtual functions but non-virtual destructor
LiquidCrystal.h:7: warning: alignment of 'LiquidCrystal::_ZTV13LiquidCrystal' is greater than maximum object file alignment. Using 1
error: no matching function for call to 'LiquidCrystal::LiquidCrystal()'hardware/libraries/LiquidCrystal/LiquidCrystal.h:11: note: candidates are: LiquidCrystal::LiquidCrystal(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)

hardware/libraries/LiquidCrystal/LiquidCrystal.h:9: note: LiquidCrystal::LiquidCrystal(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)

hardware/libraries/LiquidCrystal/LiquidCrystal.h:7: note: LiquidCrystal::LiquidCrystal(const LiquidCrystal&)

In function 'void setup()':
In function 'void loop()':

Do you have any suggestions on how to get it to compile?

The LiquidCrystal Library worked on arduino-0011

Thanks in advance :slight_smile:

Sorry posted in the wrong section.

This should have been under software not hardware.

@Mods: please move the thread if possible.

Interestingly 0012 seems to work with the old LiquidCrystal Lib from 0011.

Thanks :slight_smile:

The LCD library in 0012 needs the pins passed in the constructor. Try it with the supplied lCD example helloworld.pde sketch (change the pin number if necessary). That should compile ok (there may still be some warnings but it should compile). You can then modify your sketch with a similar constructor to the one in the example

Thanks! :slight_smile:

It worked!