From jpar@aegean.gr Sun Dec 16 12:55:34 2001
Received: from eupalinos.samos.aegean.gr (eupalinos.aegean.gr [195.251.160.12])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id fBGBtY513207
	for <prolog@swi.psy.uva.nl>; Sun, 16 Dec 2001 12:55:34 +0100 (MET)
Received: from jpar (ppp33.samos.aegean.gr [195.251.162.131]) by eupalinos.samos.aegean.gr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YP0BK7S2; Sun, 16 Dec 2001 13:53:29 +0200
From: "Ioannis Partsakoulakis" <jpar@aegean.gr>
To: <prolog@swi.psy.uva.nl>
Date: Sun, 16 Dec 2001 13:52:18 -0800
Message-ID: <PIEMJIMCPILKJIDGLNEIEEHGCAAA.jpar@aegean.gr>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-7"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Subject: [SWIPL] foreign library

I have deifned a C++ method like the following

PREDICATE(iniagent,0) {
    ...
}

and have created a dll file. I can load this dll from a prolog file called
ica.pl by adding

:-load_foreign_library('c:/icagent/debug/icai.dll').

and all goes fine when I call iniagent method from prolog.

I saved the ica.pl as a qlf file and now I want to make a new C++ file that
loads ica.qlf and calls the iniagent predicate. However, when I call
predicate iniagent from the C++ file I get the message "Undefined procedure
iniagent/0".

Any help would be valuable.

Thanks,

Ioannis

