Arduino Compiling Error
Right click on the Arduino icon, select properties. Under the compatibility tab, check "Run this program in compatibility mode" and select Windows XP. You might also want to run it as administrator.

This should hopefully solve the issue.

Source