home *** CD-ROM | disk | FTP | other *** search
- 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
- From: DWING@UH01.Colorado.EDU (Dan Wing)
- Newsgroups: vmsnet.internals
- Subject: Re: Help with local command for c link
- Message-ID: <01GNRTQXHFDU0001BH@VAXF.COLORADO.EDU>
- Date: 19 Aug 92 22:53:57 GMT
- Organization: Macro32<==>Vmsnet.Internals Gateway
- Lines: 54
- X-Gateway-Source-Info: Mailing List
-
- Mako, mako%utkbp.dnet@kekux.kek.jp, writes:
-
- >> Dan Wing wrote:
- >> $ lin*k :== LINK/NOMAP 'P1',DISK$UTIL:[MACRO]OPTIONS_FILE/OPT
- >
- >I suppose you have already got correct answers, but anyway...
- >
- >The problem is that the P1 is translated at the time the symbol is
- >defined. So, removing "$" from "$LINK" will not work; You have to
- >use a DCL command procedure to correctly interprete the argument(s).
- >For example,
- >
- > $ LIN*K :== @DISK$UTIL:[MACRO]LINK.COM
- >
- >where DISK$UTIL:[MACRO]LINK.COM contains the following line:
- >
- > $ LINK/NOMAP 'P1', DISK$UTIL:[MACRO]OPTIONS_FILE/OPT
- >
- >or you can even replace DISK$UTIL:[MACRO]OPTIONS_FILE/OPT above with
- >SYS$INPUT/OPT and place the contents of OPTIONS_FILE.OPT after the
- >LINK command.
-
- Ok, it is going on a _month_ of inaccurate postings from ol' Mr. Dan Wing.
-
- Mako is correct; from GNU C's CXSHARE.COM file:
-
- $ v = 'f$verify(0)
- $! THIS COMMAND FILE IS USED TO LINK C++ PROGRAMS TO THE libg++ library and
- $! the C RUN TIME LIBRARY. The shared version of the library is used for
- $! both libraries. This is the most efficient use of disk space.
- $ link 'P1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' -
- +GNU_CC:[000000]OPTIONS_SHR.OPT/OPT
- $if v then set verify
-
- which is what I reading when I replied to the posting, and, after not thinking
- but instead just staring blissfully at my screen, I posted that removing the
- "$" in front of the LINK would fix all the world's problems (as it were).
-
- However, as a slight save-of-face, the error indicated by the original
- poster is a result of the "$" being in front of the link command:
-
- $ abc := $link
- $ abc getcmd.obj
- %CLI-F-SYNTAX, error parsing 'TRACE'
- -CLI-E-ENTNF, specified entity not found in command tables
-
- >PS: Personally I find this kind of questions more suitable in other
- > newsgroups such as comp.os.vms, which I have not read today.
-
- I agree, and I apologize (again) for the wasted bandwidth to correct one of
- my postings.
-
- -Dan Wing, DWING@UH01.Colorado.EDU or WING_D@UCOLMCC.BITNET (DGW11)
- Who lives where the air is too thin for his brain cell.
-