This error appears during compilation in the console, it is caused by an extra file inside the system properties. You will read here the steps to take in order to avoid it.
Steps
-
Right click the Start button.
-
Click "Run".
-
Type "
sysdm.cpl
". -
Click the "OK" button. "System Properties" should now open.
-
Click the "Advanced" tab.
-
Click the "Environment variables..." button.
-
Under "System variables", scroll down until you see "GCC_EXEC_PREFIX". Click on it.
-
Click the "Delete" button.
-
Click the "OK" button.
-
Close System Properties.
-
Open the IDE again and try to upload your sketch the error should no longer occur.