Question: Why am I getting this error / usr / bin / ld: / tmp / gplcUNE 5 Eh . o: in function ` predicate

Why am I getting this error "/usr/bin/ld: /tmp/gplcUNE5Eh.o: in function `predicate(sibling_of/2)':
(.text+0xf38): undefined reference to `predicate(not/1)'
collect2: error: ld returned 1 exit status"?
Here is my code:
/* Database for family tree. It consists of facts and rules. */
/* The section in the highlighted box above has been completed for you */
/* Facts */
/* MALES */
male(abe).
male(rob).
male(jim).
male(mac).
male(bud).
male(ben).
male(kai).
male(lee).
male(roy).
male(tex).
/* FEMALES */
female(joy).
female(ana).
female(mia).
female(kim).
female(zoe).
female(mae).
female(amy).
female(pam).
female(val).
father_of(abe, ana)./* abe is the father of ana */
father_of(abe, rob)./* abe is the father of rob */
father_of(abe, jim)./* abe is the father of jim */
father_of(jim, mac).
father_of(jim, kim).
father_of(bud, zoe).
father_of(bud, val).
father_of(bud, tex).
father_of(bud, roy).
father_of(ben, bud).
father_of(ben, amy).
father_of(kai, lee).
father_of(kai, pam).
mother_of(joy, rob)./* joy is the mother of rob */
mother_of(joy, jim)./* joy is the mother of jim */
mother_of(joy, ana)./* joy is the mother of ana */
mother_of(mia, mac).
mother_of(mia, kim).
mother_of(ana, zoe).
mother_of(ana, val).
mother_of(ana, tex).
mother_of(ana, roy).
mother_of(mae, amy).
mother_of(mae, bud).
mother_of(amy, lee).
mother_of(amy, pam).
/* Complete the facts given in the diagram above */
/* RULES */
is_male(X) :-
male(X);
father_of(X,_).
is_female(X):-
female(X);
mother_of(X,_).
grandmother_of(X,Z):-
parent_of(X,Y),
parent_of(Y,Z),female(X).
grandfather_of(X,Z):-
parent_of(X,Y),
parent_of(Y,Z),male(X).
sibling_of(X,Y):-
parent_of(Z,X),
parent_of(Z,Y),not(X=Y).
parent_of(X,Y):-
father_of(X,Y);
mother_of(X,Y),male(X);female(X).
descendent_of(X,Y):-
parent_of(Y,X).
descendent_of(X,Y) :-
parent_of(Y, Z), descendent_of(Z,X).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!