syntax error

I've just started arduino today, and am fairly new to C/C++ and I came across the following error:
core/core.a(main.cpp.o): In function main': /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/main.cpp:46: undefined reference to loop'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.

the code is:
void setup() {
pinMode(13,OUTPUT);
digitalWrite(13,HIGH);
}

I've been at it for about 30 minutes, with no luck. Could someone help please?

Hi,
You need to add the loop() function to your program.
Even if it is empty, add it!
You should consult the reference (http://www.arduino.cc/en/Tutorial/Sketch).

If you load the BareMinimum program from the IDE or do File/New then you will see the absolute minimum program structure.

The hidden main() function that the Arduino IDE adds to your sketch when it is compiled is what repeatedly calls the loop() function to provide the looping functionality but the loop() function must exist even it is is empty.