Arduino Simple IR Sender Problems

When ever I run this:

#include "IRremote.h"
#include "IRremoteInt.h"

IRsend irsend;
int initPin = 4;
void setup()
{ 
  pinMode(initPin, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  if (Serial.read() != -1) {
    for (int i = 0; i < 3; i++) {
      irsend.sendSony(0xa90, 12); // Sony TV power code
      delay(100);
    }
  }
}

I get this:

In file included from main.cpp:12:
C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote/IRremoteInt.h:15:22: error: WProgram.h: No such file or directory
In file included from main.cpp:12:
C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote/IRremoteInt.h:87: error: 'uint8_t' does not name a type
C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote/IRremoteInt.h:88: error: 'uint8_t' does not name a type
C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote/IRremoteInt.h:89: error: 'uint8_t' does not name a type
C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote/IRremoteInt.h:92: error: 'uint8_t' does not name a type

Here is the source site: A Multi-Protocol Infrared Remote Library for the Arduino

Also, at the top of the web page it says:

Note for Arduino 1.0
I haven't had time to update the library yet, but several helpful people have told me that to use the library with Arduino 1.0, you need to change
#include <WProgram.h>
to
#include <Arduino.h>
in IRRemoteInt.h.

and I have no idea what that means.
Thanks to anyone who helps!!!!!!!!!!!!! :grin:

go to where you installed arduino IDE, and go to the IRremote library folder and find IRremoteInt.h ex "C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote\IRremoteInt.h"

towards the top of this text file you should see something like:

#include "WProgram.h"

replace it with:

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
  #include <pins_arduino.h>
#endif

teda... it works

My best guess is that the problem is right inside the file IRremoteInt.h

EDIT: Sirbow2 got the answer in just before me. His would probably work better.

Open up that file with wordpad and find the line that says

#include <WProgram.h>
and change it to
#include <Arduino.h>

as mentioned in your post.
The file is located at C:\Users\Robert\Desktop\arduino-1.0\libraries\IRremote

This seems to be the problem because the compiler is outputting: ...IRremoteInt.h:15:22: error: WProgram.h: No such file or directory

After you do that, the library should be compatible with Arduino 1.0 and usable with your current code.

Thank you both for the quick reply! It seems to have worked.
Now I get the error:

main.cpp.o: In function `main':
C:\Users\Robert\Desktop\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Users\Robert\Desktop\arduino-1.0\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'

whenever I hit verify. This also has me stumped.

compiled fine with me. i attached my working library. replace the IRremote folder in your Arduino IDE library folder with the IRremote folder in the zip. maybe just try restarting IDE if you didnt? sounds like something non library related

IRremote.zip (23.5 KB)