Trouble w/ programmer?

Arduino: 1.6.12 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

/var/folders/_h/cw2_jv2j0kb8m4shtlxb48900000gq/T//ccPFrtNs.ltrans0.ltrans.o: In function main': ccPFrtNs.ltrans0.o:(.text.startup+0x1c8): undefined reference toloop' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

i've already tried anything, i've been trying for an hour! XD i can't understand these things for the life of me, so i'm asking the greats. any help?

i felt it worth mentioning that the blink sketch uploads just fine. i honestly don’t get it here’s the code anyways

[#include <Servo.h>

Servo TestServo;

void setup() {


Every sketch must have a loop function, even if it's empty. Add the following line to your sketch:

void loop() {}

oh, okay, that's relieving i thought i had a faulty board, just to clear it up, it's arduino as isp right?

You encountered a compilation error, that has absolutely nothing to do with your board. The same problem would happen even if the Arduino wasn't plugged in to your computer.

Actual_Dragon: it's arduino as isp right?

The Tools > Programmer menu selection is only used for Tools > Burn Bootloader or Sketch > Upload Using Programmer. If you're not doing one of those then it makes absolutely no difference what you have selected in that menu.