bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with consult/1 from console (Windows v. 1.40)


From: Daniel Diaz
Subject: Re: Error with consult/1 from console (Windows v. 1.40)
Date: Fri, 25 Nov 2011 17:18:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

Sorry for the empty message...

Thank you for your detailed bug report.
This bug should be fixed now (and in the next 1.4.1 to be soon released).
Here is a pre-release you can try:

http://gprolog.univ-paris1.fr/unstable/setup-gprolog-1.4.1-msvc-x86.exe

Daniel

Le 14/11/2011 17:07, Chip Eastham a écrit :
Hi, Daniel:

I just installed version 1.40 under Windows, using the MSVC setup.

When I use the consult/1 predicate (or use File ->  Consult from the menu),
I get this error:

GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
| ?- consult('C:/GNU-Prolog/bin/myClauses.pl').
compiling C:/GNU-Prolog/bin/myClauses.pl for byte code...
C:/GNU-Prolog/bin/myClauses.pl compiled, 4 lines read - 354 bytes
written, 410 ms
uncaught exception: error(system_error('error trying to execute pl2wam
(maybe not found)'),consult/1)
| ?-

Mine is a Windows XP Pro SP2 system.  The current directory is
C:\GNU-Prolog\bin, and for
the sake of definiteness I've added that directory to the Path system
environment variable.
When I run pl2wam.exe from the command line in that directory, the
file myClauses.wam
is created without apparent error:

pl2wam myClauses.pl

and if the -w flag is added, then the myClauses.wbc file is created.
Furthermore it can
be loaded from the console without error, and my three clauses then
correctly display:

GNU Prolog 1.4.0
By Daniel Diaz
Copyright (C) 1999-2011 Daniel Diaz
| ?- load('myClauses').

(10 ms) yes
| ?- listing.

whoami(i).
whoami(me).
whoami(myself).

yes
| ?-

Also out of an abundance of caution, I've tried running vcvars.bat
before running
gprolog.exe to ensure any other necessary environment variables are set.  The
same error appears when I consult/1 the Prolog source.  A similar error occurs
if I try consulting one of the examples directory source files.

Rather than attaching my source file, let me just note that it
consists of the three
lines that appear above (preceded by a blank line, although omitting that blank
line has no effect on the error).

Running gprolog.exe from a command line produces a little additional output,
namely USED DIRE: C:\GNU-Prolog\bin when the console is launched, and
thereafter USED DIRE: . each time the File ->  Consult... menu item is used.

I looked at the directory for unstable versions, but there don't
appear to be any
yet (1.40 being such a recent stable version).

Regards,
Chip Eastham

_______________________________________________
Bug-prolog mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-prolog



--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]