Página 1 de 7
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 12:42
por marge0512
Hello, I have made a change to an old Clipper Summer87 program and I'm trying to recompile but I receive these compile errors:
Compiling LETTER.PRG
line 6: verb not recognized
#include "inkey.ch"
^
line 96: ASSIGNMENT error
LAYOUT_BLK={ ||[ ]+SubStr(Re1,1,30)+Space(02)+DtoC(Date)+Space(02)+Ref_No+[ ] }
^
2 errors
Code Pass 1
Code Pass 2
Code size 4686, Symbols 1728, Constants 3154
I do not know what the previous programmer used to compile this program with but it worked fine for him. I used the PLINK86. Can anyone please tell me why I'm getting these 2 errors??
Thanks in advance!!
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 13:15
por Pablo César
Why you do not use Clipper version 5.2e ? Summer version we do not use any more... for long time...
But let-me ask something, in this sentance:
LAYOUT_BLK={ ||[ ]+SubStr(Re1,1,30)+Space(02)+DtoC(Date)+Space(02)+Ref_No+[ ] }
I believe you are concatenting, so why are you using [] without parentheses ?
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 13:20
por marge0512
Hi and thanks for responding! Actually, I really don't know why. I hardly ever program in Clipper so I don't know much about the language. Someone needed a change and I fixed the problem but now I cannot get it to recompile.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 13:23
por alxsts
Hi!
marge0512 escreveu:I do not know what the previous programmer used to compile this program with but it worked fine for him
What a good question!
But I'm quite sure they used Clipper 5.xx. If there is a compiler directive (#include "inkey.ch") in the source code and the compiler directives (pre-processor) started with Clipper 5.xx, that's the only explanation.
You should compile it with Clipper 5.2E. If you don't have it installed,
download it from this site's download area. This download is a copy of an installation. Thus, simply unzip it to the root of your C drive. After this, you should see the C:\CLIPPER folder and it's associated subfolders like BIN, LIB, INCLUDE and so on.
After this process, you'll need to change your Config.Sys and Autoexec.bat (or Config.nt and Autoexec.nt in Win XP). Assuming it's Win XP:
Locate the file Config.nt in the C:\Windows\System or System32 (I don't remember) folder and open it. Add the lines below and save it.
Open the Autoexec.nt file in the same folder, add the following lines and save it.
Código: Selecionar todos
SET INCLUDE=C:\CLIPPER\INCLUDE
SET LIB=C:\CLIPPER\LIB
SET OBJ=C:\CLIPPER\OBJ
SET PLL=C:\CLIPPER\PLL
PATH=%PATH%;C:\CLIPPER\BIN;
SET CLIPPER=F190
You're ready to go! Try to colpile and link your program:
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 13:27
por marge0512
Thank you so much for this information!! I will try this.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 13:53
por Pablo César
May you show what you already change ? Please show the source code and indicate the lines you changed and chagend for , then we´ll see if there is any Clipper mistake in it.
To upgrade system with Clipper 5.2e may be required some little changes and you will need to downlod and install it. Clipper 5.2e you will find here in downloads section:
https://pctoledo.org/forum/fileba ... 168&page=1 then you will know to configure your enviroment (I think Alexandre gives already some instructions).
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 15:31
por marge0512
Ok, I downloaded the 5.2e and made the changes in the configsys.nt and autoexec.nt. I rebooted to make sure the changes went into affect. It doesn't look like it's using the RTLink. Do I need to set a path at the DOS prompt also?
I'm getting the same errors:
C:\let_1902>clipper letter.prg -l -m
The Clipper Compiler, Summer '87
Copyright (c) Nantucket Corp 1985-1987. All Rights Reserved.
Microsoft C Runtime Library Routines,
Copyright (c) Microsoft Corp 1984-1987. All Rights Reserved.
Compiling LETTER.PRG
line 6: verb not recognized
#include "inkey.ch"
^
line 96: ASSIGNMENT error
LAYOUT_BLK={ ||[ ]+SubStr(Re1,1,30)+Space(02)+DtoC(Date)+Space(02)+Ref_No+[ ] }
^
2 errors
Code Pass 1
Code Pass 2
Code size 4686, Symbols 1728, Constants 3154
C:\let_1902>RTLINK FI CTOOLD87.OBJ, DEBUG.OBJ, LETTER.OBJ ^
LIB CLIPPER.LIB, EXTEND.LIB OVERLAY.LIB, CSG_UTL2.LIB, CT1.LIB ^
OUTPUT l04252k.EXE
The system cannot execute the specified program.
Using the DOS prompt, I go to my working directory and then use a .BAT file to compile. The code in my .BAT is this:
clipper letter.prg -l -m
RTLINK FI CTOOLD87.OBJ, DEBUG.OBJ, LETTER.OBJ ^
LIB CLIPPER.LIB, EXTEND.LIB OVERLAY.LIB, CSG_UTL2.LIB, CT1.LIB ^
OUTPUT l04252k.EXE
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 15:47
por alxsts
Hi!
It seems you have something in your environment variables pointing to the location (PATH) where Summer'87 is located.
Verify and remove it.
Make a simple test, using the full path to invoke the newly installed Clipper version and the linker:
Código: Selecionar todos
C:\let_1902>C:\CLIPPER\BIN\clipper letter.prg -l -m
C:\let_1902>C:\CLIPPER\BIN\RTLINK FI CTOOLD87.OBJ, DEBUG.OBJ, LETTER.OBJ LIB CLIPPER.LIB, EXTEND.LIB OVERLAY.LIB, CSG_UTL2.LIB, CT1.LIB OUTPUT l04252k.EXE
If you get to generate the .EXE, the above suspicion will be proven...
Keep posting.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 16:04
por marge0512
It seems you are correct. It looks like it's picking up the 5.2e linker (I think) and I get these errors now:
C:\let_1902>c:\clipper\bin\clipper letter.prg
Clipper (R) 5.2e
Copyright (c) 1985-1995, Computer Associates International, Inc.
Microsoft C Floating Point Support Routines
Copyright (c) Microsoft Corp 1984-1987. All Rights Reserved.
310K available
Compiling LETTER.PRG
Compiling STD_INIT.PRG
Cannot open, assumed external
Compiling SEC_CHEK.PRG
Cannot open, assumed external
Compiling BORDERS.PRG
Cannot open, assumed external
Compiling VAR_INIT.PRG
Cannot open, assumed external
Compiling DISP_MSG.PRG
Cannot open, assumed external
Compiling U_SCROLL.PRG
Cannot open, assumed external
Compiling SAV_SCRN.PRG
Cannot open, assumed external
Compiling SCRL_RET.PRG
Cannot open, assumed external
Compiling RST_SCRN.PRG
Cannot open, assumed external
Code size 7298, Symbols 2208, Constants 3438
C:\let_1902>c:\clipper\bin\rtlink fi letter.obj lib clipper.lib, extend.lib, overlay.lib, csg_utl2.lib, ct1.lib
output 104252k.exe
The system cannot execute the specified program.
I need to locate these and put them in my working directory, it seems. Also, locate why it's pointing to the
Summer 87 compiler. Thanks!
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 16:13
por Pablo César
You are right, must locate these file in local folder (together with letter.prg):
STD_INIT.PRG, SEC_CHEK.PRG, BORDERS.PRG, VAR_INIT.PRG, DISP_MSG.PRG, U_SCROLL.PRG, SAV_SCRN.PRG, SCRL_RET.PRG and RST_SCRN.PRG
alxsts escreveu:After this process, you'll need to change your Config.Sys and Autoexec.bat (or Config.nt and Autoexec.nt in Win XP).
This in XP is not going to work, because autoexec.nt always it is going be rewrited by SO.
(correction: this is not correct. You can use autoexec.nt from windows path home at system32). Sorry for my mistake.
So you will need to make a batch file just to assign enviroment.
SET INCLUDE=C:\CLIPPER\INCLUDE
SET LIB=C:\CLIPPER\LIB
SET OBJ=C:\CLIPPER\OBJ
SET PLL=C:\CLIPPER\PLL
PATH=%PATH%;C:\CLIPPER\BIN;
SET CLIPPER=F190
You do not need to include Clipper.lib in your compiling with RTLINK.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 16:16
por marge0512
Oh, ok. That's what i have too.....XP. Thanks! I will do batch file for that.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 16:24
por Pablo César
And please, run batch file only once at time, at line command (because %path%, otherwise it´s going to duplicate path)
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 16:32
por alxsts
Olá!
Pablo: nunca ouvi dizer que o Windows (todas as versões) regrava o Config e Autoexec.nt após a abertura de cada sessão do prompt do CMD. Onde você viu isso? Tem certeza? Não faz sentido...
Pablo: I was never told Windows (all versions) rewrites Config and Autoexec.nt files after every CMD prompt session. Where did you get this information? Are you sure? It makes no sense...
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 17:21
por Pablo César
Sorry Alexandre (alxsts), my apologies ! I was completly wrong when I said "always it is going be rewrited by SO", this is not correct. I do not know how I have took this wrong rule for me... hihihi sorry for my mistake. But pleasem you could say I was wrong only in English (I understand perfectly) rsrs
(I have re-edited my message, in order to avoid missundertandings) Sorry for the inconveniences.
Recompiling Old Summer87 Program
Enviado: 08 Mai 2012 17:40
por alxsts
Hi!
No problem Pablo. For a while I thought I was mad for not knowing these details about those files for almost 30 years...
Also know you understand English. I'm worried about those mates who can't...
Marge (would it be Marjorie?): please reconsider creating an extra .BAT file. It´s not necessary.