home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / vmsnet / internal / 1169 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.5 KB

  1. Path: sparky!uunet!stanford.edu!rutgers!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!nigel.msen.com!emory!sol.ctr.columbia.edu!hamblin.math.byu.edu!arizona.edu!mvb.saic.com!macro32
  2. From: DWING@UH01.Colorado.EDU (Dan Wing)
  3. Newsgroups: vmsnet.internals
  4. Subject: Re: Help with local command for c link
  5. Message-ID: <01GNRTQXHFDU0001BH@VAXF.COLORADO.EDU>
  6. Date: 19 Aug 92 22:53:57 GMT
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. Lines: 54
  9. X-Gateway-Source-Info: Mailing List
  10.  
  11. Mako, mako%utkbp.dnet@kekux.kek.jp, writes:
  12.  
  13. >> Dan Wing wrote:
  14. >>   $ lin*k    :== LINK/NOMAP 'P1',DISK$UTIL:[MACRO]OPTIONS_FILE/OPT
  15. >
  16. >I suppose you have already got correct answers, but anyway...
  17. >
  18. >The problem is that the P1 is translated at the time the symbol is
  19. >defined. So, removing "$" from "$LINK" will not work; You have to
  20. >use a DCL command procedure to correctly interprete the argument(s).
  21. >For example,
  22. >
  23. >       $ LIN*K :== @DISK$UTIL:[MACRO]LINK.COM
  24. >
  25. >where DISK$UTIL:[MACRO]LINK.COM contains the following line:
  26. >
  27. >       $ LINK/NOMAP 'P1', DISK$UTIL:[MACRO]OPTIONS_FILE/OPT
  28. >
  29. >or you can even replace DISK$UTIL:[MACRO]OPTIONS_FILE/OPT above with
  30. >SYS$INPUT/OPT and place the contents of OPTIONS_FILE.OPT after the
  31. >LINK command.
  32.  
  33. Ok, it is going on a _month_ of inaccurate postings from ol' Mr. Dan Wing.
  34.  
  35. Mako is correct; from GNU C's CXSHARE.COM file:
  36.  
  37.   $ v = 'f$verify(0)
  38.   $! THIS COMMAND FILE IS USED TO LINK C++ PROGRAMS TO THE libg++ library and
  39.   $! the C RUN TIME LIBRARY.  The shared version of the library is used for
  40.   $! both libraries.  This is the most efficient use of disk space.
  41.   $ link 'P1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' -
  42.           +GNU_CC:[000000]OPTIONS_SHR.OPT/OPT
  43.   $if v then set verify
  44.  
  45. which is what I reading when I replied to the posting, and, after not thinking
  46. but instead just staring blissfully at my screen, I posted that removing the
  47. "$" in front of the LINK would fix all the world's problems (as it were).
  48.  
  49. However, as a slight save-of-face, the error indicated by the original
  50. poster is a result of the "$" being in front of the link command:
  51.  
  52.   $ abc := $link
  53.   $ abc getcmd.obj
  54.   %CLI-F-SYNTAX, error parsing 'TRACE'
  55.   -CLI-E-ENTNF, specified entity not found in command tables
  56.  
  57. >PS: Personally I find this kind of questions more suitable in other
  58. >    newsgroups such as comp.os.vms, which I have not read today.
  59.  
  60. I agree, and I apologize (again) for the wasted bandwidth to correct one of
  61. my postings.
  62.  
  63. -Dan Wing, DWING@UH01.Colorado.EDU or WING_D@UCOLMCC.BITNET (DGW11)
  64.  Who lives where the air is too thin for his brain cell.
  65.