I keep getting compile error:
../../thread/thread.c:318: undefined reference to `pid_alloc`
../../thread/thread.c:350: undefined reference to `pi_get`
thread.c looks like:
Code:
....
#include <pid.h>
....
line 318: assert(pid_alloc(tid));
...
line 350: struct pidinfo *wait_t = pi_get(tid)
...
pid.h:
Code:
struct pidinfo *pi_get(pid_t pid);
...
int pid_alloc(pid_t *retval)
...
pid.c:
Code:
...
struct pidinfo *
pi_get(pid_t pid)
{
...
}
...
int
pid_alloc(pid_t *reval)
{
...
}
...
I can't understand why I'm getting this error when pid.h and pid.c seem to be fine