Can't get IR working...

Hi,

I bought a IR set and i wanted to upload some standerd code:

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

int RECV_PIN = 11;
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
}
}

But when i try to upload i get an error:

Arduino: 1.6.7 (Windows 7), Board: "Arduino/Genuino Uno"

\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\core\core.a" "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\core\main.cpp.o"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-ar" rcs "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\core\core.a" "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\core\new.cpp.o"
"C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp/IR_test.ino.ino.elf" "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\sketch\IR_test.ino.ino.cpp.o" "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\libraries\IRremote\IRremote.cpp.o" "C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp/core\core.a" "-LC:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp" -lm
C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\libraries\IRremote\IRremote.cpp.o: In function `MATCH(int, int)':

C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: multiple definition of `MATCH(int, int)'

C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\sketch\IR_test.ino.ino.cpp.o:C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: first defined here

C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\libraries\IRremote\IRremote.cpp.o: In function `MATCH(int, int)':

C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: multiple definition of `MATCH_MARK(int, int)'

C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\sketch\IR_test.ino.ino.cpp.o:C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: first defined here

C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\libraries\IRremote\IRremote.cpp.o: In function `MATCH(int, int)':

C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: multiple definition of `MATCH_SPACE(int, int)'

C:\Users\Admin\AppData\Local\Temp\build30fb6818026e82e8d32f8f5d93a15672.tmp\sketch\IR_test.ino.ino.cpp.o:C:\Users\Admin\Documents\Arduino\libraries\IRremote/IRremoteInt.h:176: first defined here

collect2.exe: error: ld returned 1 exit status

Using library IRremote in folder: C:\Users\Admin\Documents\Arduino\libraries\IRremote (legacy)
exit status 1
Error compiling.

Does anyone know where this is coming from?

Thanks in advance,

TheTvL

you can remove the " #include <IRremoteInt.h> " It will works without any issues.