Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!rutgers!lll-lcc!pyramid!voder!blia!ted From: ted@blia.BLI.COM (Ted Marshall) Newsgroups: comp.os.vms Subject: Re: linking against RTLs Message-ID: <3027@blia.BLI.COM> Date: Sun, 2-Aug-87 02:57:28 EDT Article-I.D.: blia.3027 Posted: Sun Aug 2 02:57:28 1987 Date-Received: Sun, 2-Aug-87 20:21:07 EDT References: <12322163796.34.AWALKER@RED.RUTGERS.EDU> Distribution: world Organization: Britton Lee, Los Gatos, CA Lines: 31 Summary: VMS has .olb's for most RTL routines In article <12322163796.34.AWALKER@RED.RUTGERS.EDU>, AWalker@RED.RUTGERS.EDU (*Hobbit*) writes: > I want to link images that reference VMSRTL and LIBRTL such that the > code I use from the library winds up *in the image*, not simply mapped > at activation time. This is so the resultant image can be run on a site > with a lower version of VMS. The linker will not move modules from a shareable image into the executable. However, most, if not all of the standard RTL routines are also in STARLET.OLB. Thus, if you link /NOSYSSHR/SYSLIB, you will get the routines in your executable as you desire. Note, the STARLET.OLB shipped with Micro-VMS is much cut down and won't do the job. Note also that other user callable shareable images, for example, LBRSHR.EXE for accessing a library file, do not have .OLB forms shipped with VMS so you are stuck. Another way to support down rev VMS systems is as follows: decide on the lowest version of VMS you want to support. Go to the VMS distribution for that version (you did keep the old distributions, didn't you? :-), extract all of the shareable images that went into SYS$SHARE and put them in a private directory. When you go to link your application, link /NOSYSSHR and reference the necessary shareable images from the private directory in your .OPT file. When the application is run, the shareable images will be referenced from SYS$SHARE and it will be just like you linked on that lower version. Final note: the execuable file format changed slightly from V3 to V4. I don't think there is any way to link under V4 and produce a V3 compatable image unless you run the V3 linker. -- Ted Marshall ...!ucbvax!mtxinu!blia!ted mtxinu!blia!ted@Berkeley.EDU Britton Lee, Inc., 14600 Winchester Blvd, Los Gatos, Ca 95030 (408)378-7000 The opinions expressed above are those of the poster and not his employer.