PDA

View Full Version : conflicting types for 'wait' ... ?




OneDreamCloser
Sep 1, 2009, 05:40 AM
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



gnasher729
Sep 1, 2009, 07:53 AM
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
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.

OneDreamCloser
Sep 1, 2009, 03:51 PM
thanx a lot, renaming the function did the necessary work