home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / vms / 13963 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.9 KB

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