0

I've installed SwiProlog and PDT for Eclipse, made new process, consulted my file, where is only one row:

male(kalle).

It became green. but when I run in console:

male(kalle).

I've get

ERROR: [Thread pdt_console_client_0_male] Undefined procedure: male/1 (DWIM could not correct goal)

What I'm missing?

puandr
  • 1

1 Answers1

1

Seems that there are two points which have to be clarified:

First one (which I assume that affects your case):

I tried to figure it out, seems that you have no file with rules. Prolog is working with rules so this means you need to write rules. Seems that in your case there are no rules yet, correct?

For more information about prolog kindly have a look at: Fact and Rules

Second one:

I assume that you already got also the Ecclipse Marketplace ProDT?

In case not please follow the instructions there:

  1. Launch Ecclipse
  2. Go to "Help" > "Ecclipse Marketplace"
  3. In Marketplace search "Prolog Development Tools (ProDT)"

For more information see link: Programm Development Tools

Afterwards you can start with the first point.