IRremote library "Error Compilling" Help!

Tonyzhang:
Hello!

I'm working on my DFRobotShop Rover and I'm trying to control my car via Infrared and using IRremote library(GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols).

However, After I verify the code it appear the error message:

IRremote\IRremote.cpp.o: In function "MATCH (int , int)':
/IRremoteInt.h:176:multiple definition of 'MATCH (int, int)'
sketch_oct21a.cpp.o:C:\Documents and Settings\Administrator\My Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: first defined here

Your not the only one to have this fault. I ran into the same fault today. Generally the answer on forums/instructables has been to change the WProgram.h to Arduino.h in the IRremoteInt.h. This doesn't work, well it didn't for me.And why?........

Ken Shirrifs library,GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols, has been updated so you shouldn't have to change anything in the library.He has placed a bit of code in there to make it compatable with all versions of Arduino.

That said , when a sketch is compiled, I get the same error as you did. A few examples in the "IR library download" compile ok. If an example has #include <IRremoteInt.h> I get the above fault.
I searched for another version of the library and found one that hadn't been updated, changed the wprogram.h for arduino .h and all examples now compile without error. I would like to see a fix for the new updated library though, as we all like to run with the newest shiniest code available. But unless Mr. Shirrif reads these post it could be a while.

Thanks to Ken Shirrif for the library.

Stu