From tpe@aegean.gr  Tue Jul 27 09:27:26 1999
Received: from pythagoras.aegean.gr (pythagoras.aegean.gr [195.251.160.1])
	by swi.swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id JAA13920
	for <prolog@swi.psy.uva.nl>; Tue, 27 Jul 1999 09:27:26 +0200 (MET DST)
Received: from wmstr (xtr157.x-treme.gr [212.120.193.158]) by pythagoras.aegean.gr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0)
	id P25324F8; Tue, 27 Jul 1999 10:26:57 +0300
Message-ID: <000401bed801$c07df640$9ec178d4@wmstr>
From: "=?iso-8859-7?B?0N308e/yINTz3evp7/I=?=" <tpe@aegean.gr>
To: "SWI Prolog List" <prolog@swi.psy.uva.nl>
Subject: C++ and SWI Compilation problem
Date: Tue, 27 Jul 1999 10:20:09 +0300
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-7"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.2106.4
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4

Hallo again,
I still have the compilation problem. After a big problem (I could not
compile form the the VC environment) and a new HD format, I made all the
necessary changes in my autoexec.bat file and here are the results:
--------------------------------------------------------------------------
--------------------------------------
C:\Langs\pl\bin>plld -v -o calc.cpp calc.pl
        eval `plcon.exe -dump-runtime-variables`
                CC="cl"
                PLBASE="c:/langs/pl"
                PLARCH="i386-win32"
                PLLIBS=""
                PLLDFLAGS=""
        LIB=c:\langs\pl\lib;\LIB;\MFC\LIB;;C:\Langs\pl\lib

        link.exe /out:ctmp--2094945  /nologo libpl.lib
Bad command of filename
        plcon.exe -f none -F none -g true -t
"consult(['calc.pl']),qsave_program
('pltmp--2094945.exe',[goal='\$welcome',toplevel=prolog,initfile=none])"
calc.pl compiled, 0.00 sec, 1,016 bytes.
[halt]
        copy /b ctmp--2094945+pltmp--2094945.exe calc.cpp
Could not open ctmp--2094945: No such file or directory
        rm -f ctmp--2094945
        rm -f ctmp--2094945.exp
        rm -f ctmp--2094945.lib
        rm -f pltmp--2094945.exe
*** C:\LANGS\PL\BIN\PLLD.EXE exit status 1
--------------------------------------------------------------------------
--------------------------------------
As you can see this time I have no tmp files at all!
Following is my autoexec.bat file in case someone needs it.

--------------------------------------------------------------------------
--------------------------------------
C:\WINDOWS\COMMAND\mode con codepage prepare=((737)
C:\WINDOWS\COMMAND\ega2.cpi)

C:\WINDOWS\COMMAND\mode con codepage select=737
keyb gk,,C:\WINDOWS\COMMAND\keybrd4.sys
PATH C:\PROGRA~1\FAX\BITWARE\

REM -----------VC 5---------
if "%OS%" == "Windows_NT" set
PATH=%MSDevDir%\BIN;%MSVCDir%\BIN;%MSVCDir%\BIN\%V
cOsDir%;%PATH%
if "%OS%" == "" set
PATH="%MSDevDir%\BIN;%MSVCDir%\BIN";"%MSVCDir%\BIN\%VcOsDir%
";%PATH%
set
INCLUDE=%MSVCDir%\INCLUDE;%MSVCDir%\MFC\INCLUDE;%MSVCDir%\ATL\INCLUDE;%INC
LU
DE%
set LIB=%MSVCDir%\LIB;%MSVCDir%\MFC\LIB;%LIB%

REM ----------SWI PROLOG--------
set SWI_HOME_DIR=C:\Langs\pl
set LIB=%LIB%;%SWI_HOME_DIR%\lib

set PATH=%PATH%;%SWI_HOME_DIR%\bin

set INCLUDE=%INCLUDE%;%SWI_HOME_DIR%\include
REM --------END SWI-----
--------------------------------------------------------------------------
--------------------------------------

Thank you
Peter Tselios
tpe@aegean.gr
http://www.samos.aegean.gt/icsd/tpe



