Error in compilation

exec: "C:\Users\dougl\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": file does not exist

Compilation error: exec: "C:\Users\dougl\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": file does not exist

This is the error i have. Please help me!!! Thank you!

One solution might be to downgrade the avr board package using the board manager; test if it works. If yes, next upgrade to the latest.

If downgrading does not help, your antivirus might have removed it; check that and whitelist the application (or the full Arduino15 directory).

Actually i found that i don't even have AppData in my user C like is empty, is it because of Windows 11?

If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".

Oh i found it now. So what should i do once i found AppData folder?

Follow the path that did throw the error. Is C:\Users\dougl\AppData\Local\Arduino15 there? Is C:\Users\dougl\AppData\Local\Arduino15\packages there? Etc.

Did you try the suggestion to downgrade the board package using the board manager (which is part of the IDE).

Did your antivirus (if any) block it?

Erm for the bottom two methods i haven't tried but if i found that the package really isnt there, how can i redownload them?

I think my antivirus haven't done anything as everything was still working 2 weeks before and in between i haven't done anything i guess.

Thanks

Use board manager as described earlier.

image

  • You can select another version from the dropdown.
  • You can uninstall (remove); it should try to download / install after that.
  • If you don't see the Arduino AVR boards as in the image, install it.

I couldn't find this is my boards manager ...

I typed out the whole name Arduino AVR Boards and it is n't shown at all

Oh i think i found it and resintalling works!!!

Thanks so much!!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.