IRremote issue: 'RECV_PIN' is not a type

For a class we are getting our Arduinos to 'Multi-Task' and I wanted to include the IRremote library in it. I think I have it typed right, and before you ask, yes I fixed the Timer error between pitches.h and IRremote.h. Apologies, it's sort of long.

#include "pitches.h"
#include <IRremote.h>

//Skipped two classes

class IR
{
const int RECV_PIN = 7;
IRrecv irrecv(RECV_PIN); //This line is causing the error
decode_results results;


public:
IR()
{
  irrecv.enableIRIn();
  irrecv.blink13(true);
}

void Update()
{
  if (irrecv.decode(&results)){
        Serial.println(results.value, HEX);
        irrecv.resume();
    }
  }
};

Flasher led1(12, 100, 400);
IR      IRled1(7);
Speaker 
void setup() {
  // put your setup code here, to run once:
      Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
    led1.Update();
    IRled1.Update();
}

Hello,

If I download the library from this link below and compile the IRrecvDemo sample, no errors occur.

I can not test your code, files are missing:

pitches.h: No such file or directory

IRrecvDemo:

/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  // In case the interrupt driver crashes on setup, give a clue
  // to the user what's going on.
  Serial.println("Enabling IRin");
  irrecv.enableIRIn(); // Start the receiver
  Serial.println("Enabled IRin");
}

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

Pitches.h don't matter. It had to do with one of the skipped classes. Yes, the demo works for me too, but that's the weird thing. It just won't work in my code. Even though the demo works, my code doesn't. I could post the full .ino and .h files if that helps