Can't upload Mega 2560 from Windows Vista laptop to Arduino

I have tried the Troubleshooting Guide to best of my ability. I am still unable to upload Mega 2560 from Windows Vista laptop to Arduino device.

Device is plugged into laptop.
Green LED is on.
Yellow LED near pin 13 is blinking.

Running Arduino 0021.
Within "Tools" tab the board is set to Mega 2560.
The Serial Port (only one listed) is set to COM3.

Here is the Error Message:

core.a(main.cpp.o): In function main': C:\Users\Wassojj\Downloads\arduino-0021\hardware\arduino\cores\arduino/main.cpp:7: undefined reference to setup'
C:\Users\Wassojj\Downloads\arduino-0021\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'

Thanks in advance for help.

Hi,
first try to use the current software version (022) and it will help to have a look in your source code.

Juergen

wassojj:
core.a(main.cpp.o): In function main': C:\Users\Wassojj\Downloads\arduino-0021\hardware\arduino\cores\arduino/main.cpp:7: undefined reference to setup'
C:\Users\Wassojj\Downloads\arduino-0021\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'

It seems as if you are trying to verify/upload an empty sketch. An empty sketch does not contain a setup() or loop() function.
Please select one of the example sketches e.g. File->Examples->Basics->BareMinimum and try again.

Additonally, as mentioned before, you should use version 022 of the arduino software to avoid other possible problems.

Good luck
Wolfgang

Make sure you're uploading a working sketch. ( thanks voithian)

Select "File > Examples > 1.Basics > Blink"

Make sure that the IDE has unzipped correctly. I've seen situations where, on windows, the unzip didn't complete properly and some files were missing.

m

Thanks guys .. I think I got it uploaded !!!

wassojj

Oops ... I should have stated what the problem was so someone else will have a reference. I originally download 0021 ... then later downloaded 0022. I think having both versions on my pc was the problem. After much frustration, I deleted verion 0021 ... and then the upload appeared to work just fine. Juergen, it was your post that triggered the idea that having both versions on my pc might be the problem. Thanks !!!! And thanks to all the others for posting ideas so quickly !!!

wassojj