Fatal error: file.h: No such file or directory but i installed the libaries

the error massage C:\Users\xxxx\xxxxxxx.ino:1:10: fatal error: file.h: No such file or directory
#include <file.h>
^~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: file.h: No such file or directory

but i installed the file using library manager,
uses the include library fuction to add my code
the file is in the first layer of the folder
and there is not missspell or capital.

The compiler saw this library link (#include<file.h>) in your sketch, but could not find "file.h" in all the normal places where library files reside. I have a feeling that "file.h" should have another name, like "servo.h" for working with servos. What is the filename of your .INO? Would you post your sketch here?

Maybe you only need to put quotes around file.h (like this:
#include "file.h"
if that library is in the same folder as the .INO

1 Like

hmmmmm...... i dont know how i fixed it but it worked i guess, i just relocated my sketchbook file location and try installing the library and it suddently fixes itself...... i dont really know how but thank you

1 Like

Libraries must be in the libraries directory in the sketchbook directory. You might experience issues when the sketchbook directory is on a network drive, oneDrive or Google drive.

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