From jpar@aegean.gr Tue Dec 11 13:04:17 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 fBBC4H503694
	for <prolog@swi.swi.psy.uva.nl>; Tue, 11 Dec 2001 13:04:17 +0100 (MET)
Received: from jpar (ppp37.samos.aegean.gr [195.251.162.135]) by eupalinos.samos.aegean.gr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
	id YP0BKVN3; Tue, 11 Dec 2001 14:02:14 +0200
From: "Ioannis Partsakoulakis" <jpar@aegean.gr>
To: <prolog@swi.psy.uva.nl>
Date: Tue, 11 Dec 2001 14:01:11 -0800
Message-ID: <PIEMJIMCPILKJIDGLNEIIEHACAAA.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] loading foreign files

There is a predicate start/2 that loads another file that is specified by
the user:

start(InputFile,Message):-
    consult(InputFile),
    ...

The file containing the start predicate definition is contained in a qlf
file and that qlf file is loaded into memeory with PL_initialize in a C++
application. When I call start with PLQuery the application cannot find the
file specified (ex. source_sink 'test.pl' does not exist) although I know
its there.

Prolog runs with no problem the start predicate when not embedded in the C++
application.

PLQuery does fine when I am not trying to load some file in that way.

If I consult the InputFile with :-consult('test.pl') then the file is loaded
withing the qlf file. However I want to change the InputFile and the program
to change behavior.

Any help will be valuable...

Thanks in advance,
Ioannis.


