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 |
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.