Thread: Where are fork and wait?

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    722

    Where are fork and wait?

    I've recently downloaded DevCpp and tried to compile a little prog with calls to fork and wait, but, lucky me, it gave me undefined links to those functions. Then I ran gcc command line with "-Wall" and it gave me warings about implicit declarations of fork and wait. So I downloaded the latest version of MinGW, which also gave me the same results.
    Then I used MS VC++6 search tolls to find those functions names included with those packages, and also nothing.

    So where can I find a dev environemet for windows, or at least those libraries so I can fully use/compile the POSIX API on my PC??

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    My problem isn't using fork or wait. It's really compile and link them.
    Quote Originally Posted by xErath
    So where can I find a dev environemet for windows, or at least those libraries so I can fully use/compile the POSIX API on my PC??

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    But fork() and wait() aren't avialable on the lesser operating system. But using the windows specific functions you can create your own fork() and wait().

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    You though so! I found this very amusing webpage!!
    http://www.microsoft.com/windows/sfu/default.asp
    POSIX toolkit for win32

    Edit: Ouch!! 217 MB...
    Last edited by xErath; 11-21-2004 at 12:37 AM.

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Hmmm I'd trust something from microsoft for Unix as much as I'd trust void main()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  2. Signals, fork(), wait() and exec()
    By DJTurboToJo in forum C Programming
    Replies: 7
    Last Post: 03-18-2008, 09:14 AM
  3. plz help!!!
    By x135 in forum Linux Programming
    Replies: 2
    Last Post: 03-26-2006, 06:38 AM
  4. Problem with Fork()
    By Schwarzhelm in forum C Programming
    Replies: 19
    Last Post: 11-03-2003, 06:05 PM
  5. Procesees, fork(), wait() and exec()
    By Stewdent in forum Linux Programming
    Replies: 1
    Last Post: 02-20-2003, 11:34 AM