Arduino Simple IR Sender Problems

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