next up previous
Next: Use of Scratch COMMON Up: USING THE SYSTEM Previous: The Listing File


Running New or Changed Programs

If a new main program is written, or if new versions of CCSL routines are made, the progam must be recompiled and relinked. For VAX-VMS the commands required are:

 
$FOR PROG,SUB1,SUB2,.....,SUBN
$LINK PROG,SUB1,SUB2,.....,SUBN,'CCL
where CCL is a symbol defined to be the name of the CCSL Object Library (.OLB) file. At ILL an appropriate setting of CCL would normally have been made during login. At RAL it would be something like:
$ CCL=="LIB$DISK:[CCSL]LIBMK4/LIB"
where LIBMK4.OLB is the CCSL object library.

On a UNIX system the required command line is:

 
 f77 prog.f sub1.f sub2.f ..... subn.f $LIB -o prog
LIB is an environment variable set to point to the CCSL object library archive. It could be set and checked using for example:
 
sidney 1% setenv LIB ~brown/CCSL/use/lib/libmk4.a
sidney 2% echo  $LIB
/hosts/sinbad/users/dif/brown/CCSL/use/lib/libmk4.a
sidney 3% 
Graphics Libraries may also need to be included in the link step.

After that the job may be run on VMS by:
RUN PROG

and on UNIX by:
prog



P.J. Brown - Institut Laue Langevin, Grenoble, FRANCE. e-mail brown@ill.fr