From Lesta@t-online.de  Fri Aug 20 21:13:59 1999
Received: from mailout06.btx.dtag.de (mailout06.btx.dtag.de [194.25.2.154])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id VAA05464
	for <prolog@swi.psy.uva.nl>; Fri, 20 Aug 1999 21:13:57 +0200 (MET DST)
Received: from fwd03.btx.dtag.de ([194.25.2.163])
	by mailout06.btx.dtag.de with smtp 
	id 11Hu6C-0006Q3-00; Fri, 20 Aug 1999 21:13:12 +0200
Received: from t-online.de (05121269112-0001(btxid)@[193.159.71.39]) 
	by fwd03.btx.dtag.de with smtp
	id <m11Hu5v-0003bbC>; Fri, 20 Aug 1999 21:12:55 +0200
Message-ID: <37BDA81D.1FA08FCC@t-online.de>
Date: Fri, 20 Aug 1999 21:10:21 +0200
X-Mailer: Mozilla 4.05 [de]C-DT  (Win95; I)
MIME-Version: 1.0
To: "Πέτρος Τσέλιος" <tpe@aegean.gr>
CC: SWI Prolog List <prolog@swi.psy.uva.nl>
Subject: Re: Compiling a Prolog program to a stand alone application
References: <005b01beeb1f$06ed96a0$dac278d4@wmstr>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Sender: 05121269112-0001@t-online.de
From: Lesta@t-online.de (Uwe Lesta)

Πέτρος Τσέλιος schrieb:
> 
> First of all thank you very much,
> I don't know if it is just my idea, but I would like to create a console
> application. So, when I used the "qsave_program('filename.exe',
> [goal(start),stand_alone(true)])." command, I had a windows application
> (with the swi environment).
> Can I compile it as a console application?
Yes

assume test.pl

start_goal :-
	write_ln('output from pl').

compile it with

plcon -O -o test.exe -t start_goal -c test.pl

produce a executable that terminates after finish or use the
predikate halt in your prolog source.

and to put the writen data in file start test with

test > out_file



-- 


Regards

Uwe
Lesta@t-online.de

