Just Getting Started

I have a brand new arduino uno and I am using an imac OS 10.6.8, and I tried to upload the example programs "Blink" and "Bareminimum" to my board and each time I get this compiler error:

core.a(main.cpp.o): In function main': /Applications/Arduino 2.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:11: undefined reference tosetup' /Applications/Arduino 2.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:14: undefined reference to `loop'

I am the rankest of beginners but I have not been able to solve this "undefined reference " error. Aren't the libraries for the example programs preloaded? Should I reinstall arduino?

That looks like what happens when trying to compile a sketch that doesn't have the setup() and loop() functions defined. Exactly what did you do? Maybe attach a screen shot of the IDE.

I uploaded the preloaded example “Blink.”
Here it is:

Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);

// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second

Any help with this would be greatly appreciated.

Right. I’m familiar with the Blink example. What I wanted was a screen shot of the IDE, with the blink code in it, and the error messages, like I have attached below.

Don’t even try to upload it, just try to compile it, which is the leftmost button with the check mark on it.

BTW, when posting code, use code tags: