Please Help: No sys/wait.h

  • Nobody/Anonymous

    When I compile a C program, which included the file sys/wait.h , the compile said no such file
    What can I do

    Please help thx

    • Anonymous - 2004-09-21

      The sys/ heasers are as the name implied system specific. They are not portable to Windows.

      You will have to explain how you are using the header (what functions you are using and what you are using them to achieve). That way someone can suggest a Win32 specific method of achieving the same objective.


    • Nobody/Anonymous

      Actually, I am doing a homework to simulate the shell. So I need to use the fork function.
      But eventually, I know that even with the wait.h, I still can't do so. So just leave the question.

      But anyway thx very much : )

      • Nobody/Anonymous

        fork is not really available under windows. as wayne is not here to suggest it i will.

        => cygwin


    • aditsu

      aditsu - 2004-09-22

      do you really need fork? couldn't you solve the problem with spawn or ShellExecute or CreateProcess?



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks