Question: Why am I getting this error / usr / bin / ld: / tmp / gplcUNE 5 Eh . o: in function ` predicate
Why am I getting this error usrbinld: tmpgplcUNEEho: in function predicatesiblingof:
textxf: undefined reference to predicatenot
collect: error: ld returned 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
maleabe
malerob
malejim
malemac
malebud
maleben
malekai
malelee
maleroy
maletex
FEMALES
femalejoy
femaleana
femalemia
femalekim
femalezoe
femalemae
femaleamy
femalepam
femaleval
fatherofabe ana abe is the father of ana
fatherofabe rob abe is the father of rob
fatherofabe jim abe is the father of jim
fatherofjim mac
fatherofjim kim
fatherofbud zoe
fatherofbud val
fatherofbud tex
fatherofbud roy
fatherofben bud
fatherofben amy
fatherofkai lee
fatherofkai pam
motherofjoy rob joy is the mother of rob
motherofjoy jim joy is the mother of jim
motherofjoy ana joy is the mother of ana
motherofmia mac
motherofmia kim
motherofana zoe
motherofana val
motherofana tex
motherofana roy
motherofmae amy
motherofmae bud
motherofamy lee
motherofamy pam
Complete the facts given in the diagram above
RULES
ismaleX :
maleX;
fatherofX
isfemaleX:
femaleX;
motherofX
grandmotherofXZ:
parentofXY
parentofYZfemaleX
grandfatherofXZ:
parentofXY
parentofYZmaleX
siblingofXY:
parentofZX
parentofZYnotXY
parentofXY:
fatherofXY;
motherofXYmaleX;femaleX
descendentofXY:
parentofYX
descendentofXY :
parentofY Z descendentofZX
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
