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

Problem after reinstalling clipper 5.3 - can't build

Status
Not open for further replies.

efftek

Programmer
Oct 26, 2008
4
GB
Hi folks, some years ago, I wrote a program in Clipper which I use for my job every day. Recently, I wanted to reinstall clipper and make some changes to the program. It is a few years since I have done so and I have changed PC's since then. I am running Windows98SE as I find it is best for running my DOS applications.

I re-installed clipper and copied my .prg's across to make modifications but when I try to build, I got a message C3007 Can't open #include file 'fileio.ch'

I have confirmed that the autoexec.bat has the correct environment settings but could not get the compiler to find the includes so I changed the .prg to include the full path. This has sorted that problem out and the .obj's have all been built OK but I now get the linker error #4008 file (exospace.lib) Can't find indicated file.

Where am I going wrong? Im tearing my hair out and I have so much less these days anyway. I can't seem to find any help in the manuals. Please help. Thanks, Steve.
 
You need to check the 'set' environment from within the dos window.

If in doubt, take the statements from the autoexec.bat and paste them into a new batch file and run that before you compile and link.

The paths in question are probably:
Code:
Set LIB
Set INCLUDE

Regards

Griff
Keep [Smile]ing
 
Hi GriffMG, I have tried starting caci.exe from a batch file which included the SET LIB etc statements to no avail.
I really can't understand it, I had used clipper for years and never had any problems. I'm sure I was using win98 back then too. It's driving me mad trying to get it to work.

Any other suggestions?

Steve.
 
To be fair, I haven't actually compiled much in real Clipper for a while, my last commercial app having been converted to xBase++ some time ago.

That said, why not use a batch file like the one below to compile a 'hello world' applet and work upwards to your program from there:
Code:
C:\LANG\CL50\BIN\CLIPPER %1
BLINKER FI %1 LI C:\LANG\CL50\LIB\CLIPPER,C:\LANG\CL50\LIB\EXTEND,C:\LANG\CL50\LIB\TERMINAL,C:\LANG\CL50\LIB\DBFNTX

I drop the above into a batch file called mk50.bat, then call it like this:
Code:
mk50 myprog

See where you get from that, my clipper is all in a folder called C:\lang\cl50 so you will need to point your code appropriately.

Martin

Regards

Griff
Keep [Smile]ing
 
What are you using to compile & link. Do you use a batch file to drive the process. Where is the fileio.ch located?
My networks guys used to change the maps around from time to time & I would have to chase down the issue. I ended up hard coding the path to the various lib's & ancillary OBJ's in my COMPILE.bat to ensure that I could always find the needed source code even if my mapping changed on the network drives. This sounds similar, if all of the needed source is available then it's just not pointing to it properly.

Jim C.
 
Hi Jim, I am using the clipper workbench (caci.exe) to edit, compile and link. The header files, libraries etc. are in the default directories as set up by the clipper install. The autoexec.bat has been modified during instalation to include the SET INCLUDE, SET LIB etc and are all pointing to the correct directories. I could possibly link from the command line or from a batch file and include the environment variables but first I'd have to remind myself how to do it, its so easy to click the 'build application' button and hey presto.... except its not working. The compiler is doing its bit since I pointed to the includes in the source progs and I get my .obj's so its just the linker I need to sort out however, there are 15 modules to link into one .exe
I think it will be something simple - it was working before and I have a full copy of the clipper programs, my .prg's, etc on CD and have tried copying them over but still no luck.
 
I noticed from your initial post that you had been using W98, but now you are using W2k or XP maybe?

Look in the autoexec.nt and config.nt, not in the *.bat files.

Regards,
David
 
Hi David, I am still on Win98. One thing I did notice though is the config.sys file is empty. I was wondering if this was maybe the problem - should there be some config settings there?

Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top