Help for Led candle

Hi, here is my code:

//candela

//******* dichiarazioni ********
int valoreX=0;//imposta la variabile numerica
const int pin_ledgiallo13=3;//pin del led giallo

//********** setup **********
void setup(){
pinMode(pin_ledgiallo13,OUTPUT);//imposta il pin del Led come uscita
}

//********** ciclo **********
void loop() {
valoreX=random(0,255);
analogWrite(pin_ledgiallo13,valoreX);
delay(50);//attendi 50 millisecondi

}

[/code]

The compilation gives me this error:
Arduino:1.7.7 (Windows XP), Scheda:"Arduino Uno"

collect2.exe: error: ld returned 5 exit status

I need help!

Greetings to all

Lello

1.7.7? Is that the version of the compiler you are using? If so you are in the wrong place, that is developed by Arduino.org, this is Arduino.cc.

Can you upload any of the example programs such as Blink ?

LelloGi:
The compilation gives me this error:
Arduino:1.7.7 (Windows XP), Scheda:"Arduino Uno"

collect2.exe: error: ld returned 5 exit status

Newer versions of the Arduino-IDE can produce such linker errors when using Windows XP, which is an operating system version that was released in October 2001.

Two easy possibilities:
1.) Use a newer version of Windows, perhaps Windows 7.
2.) Use an older version of the Arduino-IDE, perhaps Arduino 1.0.5

Or google the error, it is very common with Windows XP, and several people found workarounds, that at least work in some cases.

I've installed version 1.0.6 of Arduino and now compile without errors.
Thanks for your help.

Lello