Problem with LiquidCrystal (newbie)

I’m trying to compile some of the built-in examples for LiquidCrystal library like “Blink.”

I get these errors:
Blink:42: error: ‘LiquidCrystal’ does not name a type
Blink.cpp: In function ‘void setup()’:
Blink:46: error: ‘lcd’ was not declared in this scope
Blink.cpp: In function ‘void loop()’:
Blink:53: error: ‘lcd’ was not declared in this scope

I get the same errors with all the LiquidCrystal examples.

To try to isolate what’s going on I compiled the following code with no errors.

#include <LiquidCrystal.h>
// LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

But when I remove comments from // LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

I get this error:
BareMinimum:1: error: ‘LiquidCrystal’ does not name a type

Any help will be greatly appreciated.

The Blink example compiles fine for me. My guess is that there is a LiquidCrystal.h somewhere on your disk that is getting included instead of the one from the library. Try a search for it.

If all else fails, reinstall Arduino 22.

I've done the reinstall, and I'm getting the same errors. I'm going to do a search for LiquidCrystal.h as you suggested and see what I find. Thanks.

Under this folder: arduino\libraries\LiquidCrystal

Do you see both LiquidCrystal.h and LiquidCrystal.cpp?

I made sure all the old Arduino stuff was deleted and then reinstalled. All works well now. Thanks for your help.

Alright. Thanks for getting back to us.