I am getting these errors when compiling the code of my arduino traffic light project:
Arduino: 1.6.3 (Windows Vista), Board: "Arduino Uno"
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-ar: unable to rename 'C:\Users\Shane1\AppData\Local\Temp\build6555032079637127601.tmp/core.a'; reason: File exists
Error compiling.
c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr5/crtm328p.o:(.init9+0x0): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
Error compiling.
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-ar: unable to rename 'C:\Users\Shane1\AppData\Local\Temp\build6555032079637127601.tmp/core.a'; reason: File exists
Error compiling.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x73
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x73
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
And also this:
Arduino: 1.6.3 (Windows Vista), Board: "Arduino Uno"
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-ar: unable to rename 'C:\Users\Shane1\AppData\Local\Temp\build6555032079637127601.tmp/core.a'; reason: File exists
Error compiling.
c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/lib/avr5/crtm328p.o:(.init9+0x0): undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Any help would be appreciated.