home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.vms:13963 vmsnet.internals:1171
- Newsgroups: comp.os.vms,vmsnet.internals
- Path: sparky!uunet!ftpbox!mothost!schbbs!XMAC104@EMail.Mot.Com
- From: XMAC104@EMail.Mot.Com (Randy McGee)
- Subject: Re: Help with local command for c link
- Organization: Motorola Inc.
- Date: Fri, 21 Aug 1992 22:36:37 GMT
- Message-ID: <1992Aug21.223637.11771@schbbs.mot.com>
- References: <sjs.714254270@sbphy.physics.ucsb.edu>
- Sender: news@schbbs.mot.com (Net News)
- Nntp-Posting-Host: 129.188.151.20
- Lines: 35
-
- In article <sjs.714254270@sbphy.physics.ucsb.edu>, sjs@sbphy.physics.ucsb.edu (Steve J. Schmidhauser) writes:
- >
- > I am having problems trying to create a local command so that the c
- > linker will use the shared libraries. We used to use a batch link inside
- > a captive account. I am trying to give students more access to dcl but
- > would like the link command to default to the shared libraries to save
- > disk space. This is what I tried to do and the results:
- >
- > $ lin*k :== $LINK/NOMAP 'P1' , DISK$UTIL:[MACRO]OPTIONS_FILE/OPT
- > (from login.com for c students) and this is what happens
- >
- > $ link perf4
- > %CLI-F-SYNTAX, error parsing 'TRACE'
- > -CLI-E-ENTNF, specified entity not found in command tables
-
- You can only use parameter substitution in command procedures. Try defining
- your symbol as:
-
- LIN*K == "@DISK$UTIL:[MACRO]LINK"
-
- Then create the file DISK$UTIL:[MACRO]LINK.COM with the following contents:
-
- $ LINK/NOMAP 'P1', DISK$UTIL:[MACRO]OPTIONS_FILE/OPTIONS
-
- This should do what you want.
-
- The reason you received the CLI-F-SYNTAX error is the dollar sign caused DCL to
- invoked the linker using the foriegn command mechanism. When this happens, DCL
- does no further parsing of the command line and simply passes the command
- string to the image using the foriegn command interface. When the linker does
- the callback to DCL to fetch the command arguments you get the CLI SYNTAX
- error.
-
- Randy McGee (XMAC104@EMail.Mot.Com)
- Motorola Inc.
-