[Top][All Lists]

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

Re: Executable

From: michel levy
Subject: Re: Executable
Date: Tue, 04 Sep 2007 11:50:05 +0200
User-agent: Thunderbird (X11/20070530)

ronan987@ a écrit :
Hi. I read on GNU Prolog’s website ( that the simplest way to obtain an executable from a Prolog source file is to use:

$ gplc

This will produce an native executable called prog which can be executed as follows:

$ prog

I did that on Linux, but after I typed in prog, nothing happened, I just got the system prompt. I was wondering what I need to do to fix that. Also, I’m using GNU Prolog on Windows XP and I’d like to produce an executable Prolog file, how would I do that?

It would be interesting to know your

Have you a directive
:- initialization(Goal).
where Goal is the first callable_term to be executed ?
Look at the doc
for more information

Example :
:- initialization(creation).
creation :- randomize,sudoku_contraintes(G), tirage(0,G).

Michel Levy
L.S.R., Bureau C214, B.P.72 - 38402 SAINT MARTIN D'HERES CEDEX
e.mail : address@hidden    tel :(33)476514022

reply via email to

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