I'm trying to use Atom as an IDE for arduino and arduino-based boards.
I'm using arduino-cli for compilation and avrdude for upload, and now I'm trying to use linter-gcc for linting.

g++ is running and the linter seems to be working ok, but it's can't find built in libs. I've added:

"C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\*"

to my GCC include paths, I've also tried copying the lib sources to my working directory, but I'm still getting (e.g.):

SPI.h: No such file or directory

Any ideas why gcc isn't seeing SPI.h?

  • 1
    If you are using Atom, why not just download Platform.io running on Atom as your Arduino IDE? It saves you all the trouble of using arduino-cli
    – hcheung
    May 28, 2020 at 2:25
  • TBH I don't want all the weight of Platform.io - I have my toolchain well established with avrdude etc and to my knowledge the platform.io environment is really set up for serial programming of prototype boards like Arduinos rather than my ICSP programming and fuse-setting of mostly custom short-run boards. May 28, 2020 at 2:45


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.