IR remote sensor

I am trying to run the test program for IR remotes. There seems to be a string of errors that I can’t get over.

My code I am running:

#include <IRremote.h>
#include <IRremoteInt.h>

int RECV_PIN = 22; //define input pin on Arduino

IRrecv irrecv(RECV_PIN);

decode_results results ;

void setup()

{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}

void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}

The errors I am getting are:

main:6: error: ‘IRrecv’ does not name a type
main:8: error: ‘decode_results’ does not name a type
main.ino: In function ‘void setup()’:
main:14: error: ‘irrecv’ was not declared in this scope
main.ino: In function ‘void loop()’:
main:18: error: ‘irrecv’ was not declared in this scope
main:18: error: ‘results’ was not declared in this scope

Have you installed the IRremote.h & IRremoteInt.h libraries correctly (if at all)?

Yes, I put both of those libraries in the library folder. That is all you have to do, right?