0

I'm trying to move from the Arduino IDE to Visual Studio Code. I have a program that uses interrupt.h

#include <avr/interrupt.h>

but it's not being found because it's not on the include path. OK, just add it to the path. For the life of me I can't find where it is. I looked in the IDE installation under hardware\arduino\avr. No luck. I looked in a variety of places and eventually just searched my entire file system and the file doesn't appear to be there. But if I compile the code in the Arduino IDE, it compiles with no errors, no complaint about not finding avr\interrupt.h

Where is the header file?

  • why don't you use windows search to find it? – jsotola Apr 26 at 4:38
  • It might depend on which version of the IDE you have, but I would start searching from where the IDE was installed (downwards). It is very likely there. – Nick Gammon Apr 26 at 6:42
  • 1
    %userprofile%\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\avr (AppData is a hidden folder) or the default with IDE C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\avr – Juraj Apr 26 at 7:31
  • @juraj - thanks. Operator error on my part. My file search had a date restriction left over from a previous run on a different tab, so it was missing the file even though I was searching exactly where it was found. – Llaves Apr 26 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.