I recently began running the IDE(1.6.6 and 1.6.9) in Windows 10. I have McAfee antivirus with real time scanning installed on the computer. When I try to compile any example or sketch I get the following error
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar: unable to rename 'C:\Users\RICHAR~1\AppData\Local\Temp\build85fe9d593c6c3a472b2a54cc5e88b608.tmp\core\core.a'; reason: Permission denied
I do not have these problems in Win 7 with the same anti virus program.
Using Google and forum search for core\core.a errors I came across the following post pointing at permissions and anti virus issues.
https://forum.arduino.cc/index.php?topic=378097.0
I tried run as administrator, and several permissions and read only > full permission file changes, but the only thing I can make work is to disable the real time scanning in McAfee when compiling/downloading.
Does anyone have another solution?
EDIT
There were two tag on PUPs as part of the new OS, ByteFence anti-malware, and some sort of "Cleaner"
performance optimizer and malware fixer. When I removed both those programs, the IDE compiles the examples and sketches without error with McAfee running as normal with real time scanning enabled.