How to Resolve 'No Such File or Directory' Error in C Programming?

  • Thread starter Thread starter markone
  • Start date Start date
  • Tags Tags
    Error
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
markone
Messages
17
Reaction score
0
how can i fix this error ?

Fix "Cannot open include file: 'unistd.h': No such file or directory"

and with Headers to

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
 
Physics news on Phys.org


Check where the file is located. Do you have it on disk? In one of include directories? What OS do you use?
 


I didn't find it where can i download this file ?
 


I use Microsoft Visual C++ 6.0 but evry time i use this HEADER FILE it show me that error
 


What do you need the file for? It appears to be a *nix specific header.

And for that matter, why are you using such an old IDE?
 


i don't know really but i buy that progam i think some file are missing