Fatal Error No such file or directory

fatal error: fcntl.h : No such file or directory 2 | #include<fcntl.h > | ^~~~~~~~~~
compilation terminated.

I am facing this problem while iam compiling file containing fcntl.h header file when using open system call in my c program in Ubuntu (its windows subsystem linux)

I have tried all possible ways/answers given on this askubuntu .com and on other sites, but error is still here. When I execute the following command it displays 6 instead of 45

 dpkg -S fcntl.h| wc -l
6
4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like