Error Message : 'LiquidCrystal' does not name a type

Hello. I am having difficulty trying to compile my binary counter. It did work, then I added some code, and it stopped working. I have removed that code but it still inst working. I am sure it is something simple, and am hoping you can give me some help. The main error is with the “LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);” line of code.

#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
int number;
int interval;

void setup() {
  lcd.begin(16, 2);
  interval = 1;}
  
void loop() {
   
  if (number == 0) {
  delay(3000);
  lcd.clear();}
  
  int zeros = 8 - String(number,BIN).length();
  String myStr;
  
  for (int i=0; i<zeros; i++) {
    myStr = myStr + "0";}
    
  myStr = myStr + String(number,BIN);         
  lcd.print(myStr);
  
  if (number == 0) {delay(1750);}
  
  if (number == 255) {
  number = 0;}
  else 
    {if (interval = 1) {delay(200);}
    else {delay(1000);}
  lcd.clear();
  number += 1;}}]

And heres the error messages I’m getting.

Task_01_Draft_01:2: error: 'LiquidCrystal' does not name a type
Task_01_Draft_01.ino: In function 'void setup()':
Task_01_Draft_01:7: error: 'lcd' was not declared in this scope
Task_01_Draft_01.ino: In function 'void loop()':
Task_01_Draft_01:14: error: 'lcd' was not declared in this scope
Task_01_Draft_01:23: error: 'lcd' was not declared in this scope

Does anyone know how to fix it?

You sure you've got the library installed? I suppose it must have been there if it worked before....

Whereabouts on your system is the LiquidCrystal.h file ?

this below link http://arduino.cc/en/Guide/Libraries

UKHeliBob: Whereabouts on your system is the LiquidCrystal.h file ?

OMG, thank you. I have the file within a folder that the Arduino program has been moaning at me about as it cannot be used because it uses a character that isnt ASCII so I move the files out of that folder and now it works. I guess it was me being at bit or a moron.

But then how did it work in the first place?

JimboZA:
But then how did it work in the first place?

I have no clue what so ever.