Question: I am unable to get my program to run using Cygwin. I am able to read the file etc but I just can not get

I am unable to get my program to run using Cygwin. I am able to read the file etc but I just can not get it to execute. I am getting the below error can you please let me know what I need to do t o get the program to run? I know what the out put will be but I have to be able to execute the program

I am unable to get my program to run using Cygwin. Iam able to read the file etc but I just can not

/cygdrive/c/cygwin64 Daniel@DESK TOP-7Q51IJP cd c: cygwin 64 Daniel DESKTOP-7Q51IJP /cygdrive/c/cygwi n64 1 bash: 1: command not found Daniel@DESKTOP-7Q51IJP /cygdrive/c/cygwi n64 ls Cygwin. ico Daniel .c etC home sbin usr bin Cygwin. bat Cygwin-Terminal .ico dev hello.c lib tmp Var Daniel@DESKTOP-7Q51IJP /cygdrive/c/cygwin64 cat daniel .c #include int main() pid t pid, pid1; fork a child process pid forkO if (pid 0) 1 error occurred fprintf (stderr Fork Failed") return 1 else if (pid 0) child process pid1 getpid printf child: pid Pod", pid); A printf C'' child: pidl %d'', pidl) B else parent process pid1 getpid() printf C' parent pid %d", C ,pid); printf ("parent: pid1 %d ,pid1) D wait NULL); return 0 Daniel@DESKTOP-7Q51IJP /cygdrive/c/cygwin64 gcc o daniel daniel C 5 daniel C:1:23: fatal error sys types.h: No such file or directory #include

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!