Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OneDreamCloser

macrumors member
Original poster
Jun 16, 2008
30
0
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
 

Attachments

  • knapsack_c_source.zip
    21.3 KB · Views: 88
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.