Nano Every and LiquidCrystal library

Compiling the “Hello world” example from this lib return this error.

Arduino: 1.8.9 (Windows 8.1), Board: "Arduino Nano Every, None (ATMEGA4809)"

In file included from C:\Arduino\Arduino_1_8_9\libraries\LiquidCrystal\src\LiquidCrystal.cpp:1:0:

C:\Arduino\Arduino_1_8_9\libraries\LiquidCrystal\src\LiquidCrystal.h:50:36: error: expected class-name before '{' token

 class LiquidCrystal : public Print {

                                    ^

C:\Arduino\Arduino_1_8_9\libraries\LiquidCrystal\src\LiquidCrystal.h:95:9: error: 'Print' has not been declared

   using Print::write;

         ^~~~~

exit status 1
Error compiling for board Arduino Nano Every.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any idea how to solve?

Compiling for the Mega works fine :slight_smile:

Thanks for your inputs

There is a bug in Print.h in the current version of the megaavr core.

See reply #4 in this thread Can compile sketch for Uno but not Nano Every. - Programming Questions - Arduino Forum