error verifying (compiling) message

when I write programme ,I get this message
"Arduino: 1.6.11 (Windows 10), Board: "Arduino Duemilanove or Diecimila, ATmega328"

c:\program files (x86)\arduino\hardware\tools\avr\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: Permission denied

exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"
--my board is Duemillanove :confused: :confused:

Permission denied under windows would normally indicate a permissions error that is USER bound.

Not 100% sure if this will work but try running the IDE as Administrator.
NOTE this is NOT a user with admin rights it means a REAL ADMINISTRATOR.

Google “run as administrator”

That’s where I would start as its a simple process.
If it doesnt work the turn on VERBOSE in the IDE and post the output from the console in here but PLEASE PRETTY PLEASE use code tags ( </> )

No, it should not need to be run as admin.

I thought the failure to rename core.a was from an overzealous antivirus program...

When I try to upload a sketch I get this error message.
Please anyone help me
Thank you.

Arduino: 1.8.0 (Windows 7), Board: "Arduino/Genuino Uno"

c:\program files\arduino\hardware\tools\avr\bin../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: Permission denied

exit status 1
Error compiling for board Arduino/Genuino Uno.

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