Recompiling Old Summer87 Program
Moderador: Moderadores
-
marge0512
- Usuário Nível 3

- Mensagens: 121
- Registrado em: 20 Mai 2011 12:42
- Localização: United States
Recompiling Old Summer87 Program
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!!
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!!
- Pablo César
- Usuário Nível 7

- Mensagens: 5312
- Registrado em: 31 Mai 2006 10:22
- Localização: Curitiba - Paraná
Recompiling Old Summer87 Program
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 ?
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 ?
Um clip-abraço !
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
-
marge0512
- Usuário Nível 3

- Mensagens: 121
- Registrado em: 20 Mai 2011 12:42
- Localização: United States
Recompiling Old Summer87 Program
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.
-
alxsts
- Colaborador

- Mensagens: 3092
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
Recompiling Old Summer87 Program
Hi!
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.
You're ready to go! Try to colpile and link your program:
What a good question!marge0512 escreveu:I do not know what the previous programmer used to compile this program with but it worked fine for him
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.
Código: Selecionar todos
FILES=195
BUFFERS=32,0Có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=F190Código: Selecionar todos
Clipper MyProg
RTLink FI MyProg[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)
- Pablo César
- Usuário Nível 7

- Mensagens: 5312
- Registrado em: 31 Mai 2006 10:22
- Localização: Curitiba - Paraná
Recompiling Old Summer87 Program
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).
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).
Um clip-abraço !
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
-
marge0512
- Usuário Nível 3

- Mensagens: 121
- Registrado em: 20 Mai 2011 12:42
- Localização: United States
Recompiling Old Summer87 Program
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
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
-
alxsts
- Colaborador

- Mensagens: 3092
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
Recompiling Old Summer87 Program
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:
If you get to generate the .EXE, the above suspicion will be proven...
Keep posting.
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.EXEKeep posting.
[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)
-
marge0512
- Usuário Nível 3

- Mensagens: 121
- Registrado em: 20 Mai 2011 12:42
- Localização: United States
Recompiling Old Summer87 Program
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!
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!
- Pablo César
- Usuário Nível 7

- Mensagens: 5312
- Registrado em: 31 Mai 2006 10:22
- Localização: Curitiba - Paraná
Recompiling Old Summer87 Program
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
So you will need to make a batch file just to assign enviroment.
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
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.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).
So you will need to make a batch file just to assign enviroment.
You do not need to include Clipper.lib in your compiling with RTLINK.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
Um clip-abraço !
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
-
marge0512
- Usuário Nível 3

- Mensagens: 121
- Registrado em: 20 Mai 2011 12:42
- Localização: United States
Recompiling Old Summer87 Program
Oh, ok. That's what i have too.....XP. Thanks! I will do batch file for that.
- Pablo César
- Usuário Nível 7

- Mensagens: 5312
- Registrado em: 31 Mai 2006 10:22
- Localização: Curitiba - Paraná
Recompiling Old Summer87 Program
And please, run batch file only once at time, at line command (because %path%, otherwise it´s going to duplicate path)
Um clip-abraço !
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
-
alxsts
- Colaborador

- Mensagens: 3092
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
Recompiling Old Summer87 Program
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...
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...
[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)
- Pablo César
- Usuário Nível 7

- Mensagens: 5312
- Registrado em: 31 Mai 2006 10:22
- Localização: Curitiba - Paraná
Recompiling Old Summer87 Program
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.
(I have re-edited my message, in order to avoid missundertandings) Sorry for the inconveniences.
Um clip-abraço !
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
Pablo César Arrascaeta
Compartilhe suas dúvidas e soluções com todos os colegas aqui do fórum.
Evite enviar as dúvidas técnicas por MPs ou eMails, assim todos iremos beneficiar-nos.
-
alxsts
- Colaborador

- Mensagens: 3092
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
Recompiling Old Summer87 Program
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.
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.
[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)