Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

/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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

Review the tax consequences of forming and operating a partnership.

Answered: 1 week ago

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago