conflicting types for 'wait' ... ?

Discussion in 'Mac Programming' started by OneDreamCloser, Sep 1, 2009.

  1. OneDreamCloser macrumors member

    Joined:
    Jun 16, 2008
    #1
    hi all,

    i am trying to compile an app written in C,
    but what i get is :
    variator_internal.h:76: error: conflicting types for 'wait'
    /usr/include/sys/wait.h:241: error: previous declaration of 'wait' was here

    does anybody have an idea how to tackle this ?
    ( attached you can find the code that i am trying to compile)

    thanx
     

    Attached Files:

  2. gnasher729 macrumors P6

    gnasher729

    Joined:
    Nov 25, 2005
    #2
    One is a standard Posix function, one is somewhere in your source code. If variator_internal.h just contains an incorrect prototype for the Posix "wait" then remove it. If your code has a function called "wait" conflicting with the standard Posix function then rename it.
     
  3. OneDreamCloser thread starter macrumors member

    Joined:
    Jun 16, 2008
    #3
    thanx a lot, renaming the function did the necessary work
     

Share This Page