Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling On XP ? 2

Status
Not open for further replies.

laado

Programmer
Oct 17, 2002
35
AU
Guys,

Clipper version : 5.2e
Blinker 4

I have been doing development on Win 2000 from last 3 years without any trouble.
Last week my company gave me new one with "XP" on it and all of a sudden my clipper Prgs will not compile.

I spent last 5 hrs looking through past post about this subject without any luck.

I use this Batch file to set path etc :
"SetEnv.bat"

@echo off
set include=c:\clip52\include;c:\software\include

set LIB=C:\CLIP52\LIB;C:\BLINKER4\LIB;C:\SOFTWARE\LIB
set OBJ=C:\CLIP52\OBJ;C:\BLINKER4\OBJ;C:\SOFTWARE\OBJ
set PLL=C:\CLIP52\PLL
set CLIPPERCMD=/w/b/a/v/n/m

PATH C:\PD;C:\ME;C:\CLIP52\BIN;C:\BLINKER4
--------------------------------------------------

Batch File 2
-------------------------
echo off
rmake shock

if not errorlevel 1 blinker @shock
goto end
:end
--------------------------------

Lnk File
--------------------------------
blinker incremental off
BLINKER EXECUTABLE CLIPPER F75;
fi sh001
out shock
beginarea
fi sh000,sh011,sh021,sh031,sh032,sh041,sh051,sh061,dosidle
lib extend,flex52,esc40
endarea
---------------------------------

Rmake File
--------------------------------
sh001.obj: sh001.prg
clipper sh001
sh000.obj: sh000.prg
clipper sh000
sh011.obj: sh011.prg
clipper sh011
sh021.obj: sh021.prg
clipper sh021
sh031.obj: sh031.prg
clipper sh031
sh032.obj: sh032.prg
clipper sh032
sh041.obj: sh041.prg
clipper sh041
sh051.obj: sh051.prg
clipper sh051
sh061.obj: sh061.prg
clipper sh061
----------------------

Above Steps works in WIndows 2000 But will not work in XP

The Error i get is "Blinker : 1109 unable to open obj file"

which i think as it cannot create Object files , SO i tried to create one By one using "Clipper Sh001" Then it creates
the object file but Gives me Errors about all the Static & Private Variable i have defined?

Thanks in advance

Laadi






 
I'm not 100% sure, but I suspect your environment variables are not remaining - they become local to the DOS/CMD window now - you probably need to set them up permanently, rather than using your batch file.

To see if I'm right, try compiling one obj manually:

Code:
clipper sh061

And see what the error messages are.

I use a batch file in the source folder to compile under XP - so my command line looks like:

Code:
CL50OBJ sh061

Where the batch file contains:
Code:
@echo on
C:\LANG\CL50\BIN\CLIPPER %1.PRG -m %2 %3 %4 -ustd.ch  -oOBJ\%1.OBJ
@echo off

I also remember having trouble with the make utility under XP and I had to revert to an old version of RMAKE from Nantucket - version 1.3 (vintage 1991!).

Good luck

Regards

Griff
Keep [Smile]ing
 
I build Clipper 5.2e all the time on XP SP1. What I have done is to set my paths to Clipper and Blinker into the syetem environment variables under system properties under 'Your Computer'.
This allows a call to Clipper or Blinker from the dos wondow prompt with out running your batch file.

My rmk file is structured as follows:
.prg.obj:
clipper $< /O$@ /n/a/i..\include > ERR.OUT

payment.obj : payment.prg
admintsk.obj : admintsk.prg
billHIP.obj : billHIP.prg
report.obj : report.prg
report1.obj : report1.prg
etc...

The lnk file has hardwired paths as illustrated in the following:
BLINKER INCREMENTAL OFF
BLINKER EXECUTABLE COMPRESS
BLINKER EXECUTABLE CLIPPER F115
BLINKER EXECUTABLE EXTENDED
BLINKER MESSAGE NOWARNING
BLINKER MESSAGE DUPLICATES
BLINKER EXTMEM BLOCK
BLINKER EXTMEM LIMIT
BLINKER HOST DPMI
BLINKER HOST VCPI
BLINKER HOST XMS

NOBELL

OUTPUT d:\XXXXXXXXXX\XXX\XX.EXE

search C:\BLINKER5\lib\blxratex.lib
search C:\BLINKER5\lib\BLXCLP52.lib
library C:\clipper5\lib\TPBLX52.LIB
library C:\clipper5\lib\tproot52.lib

library C:\clipper5\lib\fax2root
search C:\clipper5\lib\fax2cl52

file aa
file bb
file cc
file dd
file ....
file report
file report1

file download
file prevent
file inscore

file email
file xgets
file buttons
file pushbutn.obj

file charges.obj
file credits.obj
file ledger.obj
file payments.obj
file ctintp.obj
file ctusp.obj

file serblx.obj
library C:\CLIPPER5\lib\pcx_cl.lib
library C:\CLIPPER5\lib\pcx_clIP.lib
library C:\clipper5\lib\sam_b5.lib
library C:\clipper5\lib\tpovl52.lib
library C:\clipper5\lib\flex52.lib
search C:\catools\lib\ctp52.lib

@tpblx
@C:\CLIPPER5\LIB\cl520mid

Hope this helps or gives you a starting roadmap
Sam
 
Griff

I tried Creating a batch file as follows
@echo on
C:\Clip52\Bin\Clipper %Sh001.prg -m -ustd.ch -oOBJ\%sh001.obj
@echo off

I got this error message
SH001.PRG(30) Warning C1004 Ambiguous reference, assuming memvar: 'REG_ARR'
SH001.PRG(32) Warning C1004 Ambiguous reference, assuming memvar: 'BIZTYPE'
SH001.PRG(95) Warning C1003 Ambiguous reference: 'REG_ARR'
SH001.PRG(113) Warning C1004 Ambiguous reference, assuming memvar: 'AFORMARR'
SH001.PRG(114) Warning C1004 Ambiguous reference, assuming memvar: 'AREPARR'
SH001.PRG(115) Warning C1004 Ambiguous reference, assuming memvar: 'AZONEARR'
SH001.PRG(174) Warning C1003 Ambiguous reference: 'BIZTYPE'
1 error
7 warnings

No code generated
Error RMAKE/R2001 Exit 2: 'C:\Clip52\Bin\Clipper Sh001.prg -m -ustd.ch'

All the warning errors are the global variable etc.

I think i misunderstood you, Can you please try to explain.

 
Sam

Thanks but i still having problems using your way.

To set my Variable i use the batch file which is my first postings.

Following your way i created rmk & Lnk Files as follows
"
rmk file .prg.obj:
clipper $< /O$@ /n/a/i..\include > ERR.OUT

sh001.obj: sh001.prg
Sh000.obj: sh000.prg
sh011.obj: sh011.prg
sh021.obj: sh021.prg
sh031.obj: sh031.prg
sh032.obj: sh032.prg
sh041.obj: sh041.prg
sh051.obj: sh051.prg
sh061.obj: sh061.prg
"
lnk file
"
BLINKER INCREMENTAL OFF
BLINKER EXECUTABLE COMPRESS
BLINKER EXECUTABLE CLIPPER F115
BLINKER EXECUTABLE EXTENDED
BLINKER MESSAGE NOWARNING
BLINKER MESSAGE DUPLICATES
BLINKER EXTMEM BLOCK
BLINKER EXTMEM LIMIT
BLINKER HOST DPMI
BLINKER HOST VCPI
BLINKER HOST XMS

NOBELL

OUTPUT Shock.EXE

search C:\BLINKER4\lib\blxratex.lib
search C:\BLINKER4\lib\BLXCLP52.lib
library C:\clipper4\lib\TPBLX52.LIB
library C:\clipper4\lib\tproot52.lib

file Sh001
file sh000
file sh011
file sh021
file sh031
file sh032
file sh041
file sh051
file sh061

file Sh001.obj
file sh000.obj
file sh011.obj
file sh021.obj
file sh031.obj
file sh032.obj
file sh041.obj
file sh051.obj
file sh061.obj

library C:\CLIP52\lib\pcx_cl.lib
library C:\CLIP52\lib\pcx_clIP.lib
library C:\clip52\lib\sam_b5.lib
library C:\clip52\lib\tpovl52.lib
library C:\clip52\lib\flex52.lib

@tpblx
@C:\CLIPPER5\LIB\cl520mid
"

It didn't work.....stressed now Mate...don't know what todo :)

 
In xp you need to set the envronmental settings to include the paths your indicating. Its not enough to set the paths in the autoexec.nt.
 
Laado,

My example wasn't meant to be used literally, I meant it to point you in the right diection. For example, the -o directive and the inclusion of the header file std.ch might not fit with your environment.



Regards

Griff
Keep [Smile]ing
 
Griff,Sam

Thanks alot for your help, I am able to Compile
my clipper apps from XP now....

Griff....you r the best mate!!!! you helped me before
(couple of years ago) & now....thanks

Laado
 
Good for you, happy to help.

Regards

Griff
Keep [Smile]ing
 
More than happy to assist you Laado.

After all, a lot of us need some sort of aid once in a while.

Sam
 
I'd make that 'all of us'!

That's the beauty of Tek-tips

Regards

Griff
Keep [Smile]ing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top