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

  • Thread starter Thread starter markone
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion revolves around resolving the 'No Such File or Directory' error encountered in C programming, specifically related to the inclusion of the 'unistd.h' header file. The scope includes troubleshooting, technical explanations, and considerations regarding the development environment.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks assistance in fixing the error related to the 'unistd.h' header file.
  • Another participant suggests checking the file's location on disk and in include directories, and inquires about the operating system being used.
  • A different participant expresses difficulty in locating the file and asks where it can be downloaded.
  • A participant mentions using Microsoft Visual C++ 6.0 and consistently encountering the error when attempting to use the header file.
  • Another participant notes that 'unistd.h' is specific to Unix-like systems and questions the choice of using an outdated IDE.
  • One participant speculates that missing files may be the issue due to purchasing the program.

Areas of Agreement / Disagreement

Participants express differing views on the availability and relevance of the 'unistd.h' header file in relation to the operating system and development environment, indicating a lack of consensus on how to resolve the issue.

Contextual Notes

There are limitations regarding the assumptions about the development environment and the specific requirements for using the 'unistd.h' header file, which may not be applicable in all contexts.

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>
 
Technology 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
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
4
Views
5K
Replies
81
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
6
Views
2K
Replies
14
Views
4K