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

Clipper5.2 linking problem

Status
Not open for further replies.

EBSSue

Programmer
Sep 20, 2002
2
US
I have never programmed in Clipper before today and was given very little written reference material. Here is my problem: I have multiple programs that are used to create an application that is distributed to users for updating purposes. I have copied the .prg files (for example programs are named A,B,C,D) to my hard drive and made changes using PE.EXE on the lan. I then created a myfile.clp file which contains A,B,C,D. I then run clipper @c:\myfile.clp and it apppears to compile all programs (A B C D) into a single .obj file named myfile.obj
I then run rtlink file myfile to create an executable file named myfile.exe
The problem is that myfile does not work any longer. Am I doing the compile and link correctly???? Any suggestions
Thanks
 
Here is some sample files - this is just the way that I do it


Sample r.bat file to create
------------------------------
@Echo Off
Echo.
Attrib -r YOUR.exe
Del YOUR.exe
Echo.
RMake RH
Echo.
Del *.obj
If Not ErrorLevel 1 YOUR.exe




Sample rh.rmk file to rmake
------------------------------
// YOUR Program
// Coded By YOU OF COURSE

.prg.obj:
CLIPPER $* /N

// This will tell what files to compile and to link to
A.obj : A.prg
B.obj : B.prg
C.obj : C.prg
D.obj : D.prg

// Column Spacing
// | | | | |
YOUR.exe: A.obj B.obj C.obj D.obj
rtlink @rh



Sample rh.lnk file to do the linking
------------------------------------
# Created By YOU OF COURSE
# YOUR Program

# This Tells What File To Use
Output YOUR

# This will tell what files to compile
file A
file B
file C
file D

# External Includes - List your Libraries Here
lib nanfor


# Std Includes
lib clipper
lib extend
lib dbfntx
lib terminal
Richard L. Hankins Jr.
Senior Programmer
Auction Services, Inc.
 
The scripts look fine. Are your pointers to the libraries and OBJ files correct? I've found that the DOS window does not maintain the DOS environmental variables from one session to another. For this reason I am one of the last people in the company I work for that this has a pure DOS machine so I can compile and link the DOS applications without any trouble.
 
Sue, Did the files I posted help you out?

Elkari, what O/S are you running? Richard L. Hankins Jr.
Senior Programmer
Auction Services, Inc.
 
I have Windows NT and DOS 6.22. Any Clipper compiling and linking is done on the DOS machine. I have tried to build a clipper application using NT, but could never get the setting right. It is the only reason I am the only program where I work that does not have two window machines.
I would then run the application on the NT machine if I had to mimic how the client was using the product. There have been a few changes to the code I needed to make to get the Clipper application to run under both pure DOS and window machines.
 
Elkari, Are you connected to a server? If so what kind?

Richard L. Hankins Jr.
Senior Programmer
Auction Services, Inc.
 
It's a NetWare 5 server. I have a search drive mapped to the Clipper directories for compiling and depending on which project I am working on, a search drive mapped to the proper linker directories.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top