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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't compile

Status
Not open for further replies.

lacja

Programmer
Joined
Apr 24, 2006
Messages
2
Hi,

first, I have no expertise in Clipper.
Second, I have to make a little modification in a very old clipper program.
Third, I not sure I have every thing I need to build it.

For now, I'm just trying to compile and link it but it fails.

I have to directory, one named CLIPPER and another named CLIPPER5. Each are different and contains, I believe, tools to help me.

When I try something like \CLIPPER\CLIPPER myprog.prg I obtain too many errors. Almost every "strange" character like (,//+= produce errors.

I have a RMK file. Is it suppose to help me?

Any help will be appreciate

Thanks
 
If you have a .rmk file you should be in good shape.

Set your dos path to the folder where clipper.exe and rmake.exe are in the clipper5 folder tree.

See if there is a .bat file in the folder with your .rmk file, a lot of times programmers will design a bat file to set the complete dos enviroment. If you find a .bat file with several set clipper commands in it that is probably it. If there are not any .bat, .exe or .com file calls in it I would run that. If you're not sure put the contents on here.

After the dos enviroment is set run rmake.exe with your .rmk file as a parameter. i.e.

rmake myrmake.rmk

If the rmk is well designed it should link\complie your application.

Lyndon


 
Thanks Lyndon,

I'm now able to compile and link.

I've also find a .BAT file with instructions like SET CLIPPER, SET LIB, SET INCLUDE

I think I have all I need to complete my tasks

Thanks again

P.S.: I can't do those steps in a dos window under NT. I had to put every thing on a DOS 6.2 machine and then it works.
 
In your windows folder tree (probably \windows\system32) there are two files config.nt and autoexec.nt

They function as the autoexec.bat and config.sys for a dos virtual machine instance (a DOS window). You can try setting up some extended memory management there.

I use:
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=99

In config.nt
Note: files=99 is very important, it sets how many open file handles the DOS VM is allowed to have open. You'll need that set when compiling/linking and when the application is running. Also make sure you use the F parameter in your set clipper enviroment variable. Set Clipper = F99; Clipper 5.x has a default open file limit. I don't remember what it is though.

You can also use some switches for rmake:
try setting some reserved workspace for rmake to run in. i.e.

rmake menu.rmk /xw3072

Also try running rmake /? and it will define all switches.

Good luck
Lyndon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top