fatal error: library.h: No such file or directory
Arduino IDE shows an error:
Arduino Code:1:10: fatal error: library.h: No such file or directory
#include
^~~~~~~~~~~
compilation terminated.
exit status 1
library.h: No such file or directory
How can I solve it?
Answer
This error shows that Arduino IDE cannot find the library or header file.
- If you use a library, please make sure that the library is installed correctly. See how to install library on Arduino IDE
- If you use a header file only, please make sure that the header file is put in the same folder as your sketch. Or you can see how to add header file on Arduino IDE
Buy Arduino
1 × Arduino UNO Buy on Amazon | |
1 × USB 2.0 cable type A/B Buy on Amazon | |
1 × Jumper Wires Buy on Amazon |
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.
Additionally, some links direct to products from our own brand, DIYables.