Subject: C++ and SWI Compilation problem

From: "Πέτρος Τσέλιος" <[email-masked]>
Date: Tue, 27 Jul 1999 10:20:09 +0300

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
[email-masked]
http://www.samos.aegean.gt/icsd/tpe