Compiling error for IR sensor

Hello, I’m having trouble compiling my code for an IR receiver.

Here is my code

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

int receiverpin = 11;
IRrecv irrecv(receiverpin);
decode_results results;

void setup() {
Serial.begin(9600);
irrecv.enableIRIn();
}

void loop() {
if (irrecv.decode(&results))
{
Serial.print(results.value, HEX);
Serial.print(" ");
irrecv.resume();
}

}

Here is the error

Arduino: 1.8.5 (Windows 10), Board: “Arduino/Genuino Uno”

c:/program files (x86)/arduino/hardware/tools/avr/bin/…/lib/gcc/avr/4.9.2/…/…/…/…/avr/lib/avr5/crtatmega328p.o:(.init9+0x0): undefined reference to `main’

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

Any help is greatly appreciated