home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!ncar!noao!arizona!naucse!nauvax.ucc.nau.edu!acm
- From: acm@nauvax.ucc.nau.edu
- Newsgroups: comp.os.vms
- Subject: Re: Help with local command for C link
- Message-ID: <2SEP92.18273146@nauvax.ucc.nau.edu>
- Date: 2 Sep 92 18:27:31 GMT
- Sender: news@naucse.cse.nau.edu
- Organization: Northern Arizona University
- Lines: 33
- Nntp-Posting-Host: nauvax.ucc.nau.edu
-
- In a previous article, adrian@mti.mti.com (Adrian McCarthy) wrote:
- >In article <1992Aug20.202036.7251@sarah.albany.edu> sysbrc@loki.albany.edu (Brian Cuttler) writes:
- >>... In your case you can just change the order of the
- >>parameters to link ie:
- >>
- >>$ link :== link/nomap your_directory:options/opt,
- >>$ link myfile
- >
- >Except that this causes the executable to be options.exe rather than myfile.exe
- >as expected.
- >
- >Aid. (adrian@lexcel.com)
-
- Here at Norhtern Arizona University we approached this problem from a
- different angle. Instead of using DCL .COM files we wrote a wrapper program
- that appends the appropriate string to include a C linking options file to
- the end of the original command line. Then the "fixed" command line is passed
- to the real LINK command.
- This fixes problems that DCL hacks introduce such as trying to get the
- following command to link the correct files and produce to correct .EXE
-
- $ LINK /debug PROG1,SUB /EXE=PJ2,SUB2/NOSYSSHR,SYS$SYSTEM:SYS /STB/MAP /FULL
-
- A DCL command file that can correctly parse out the above line or similar
- ones would indeed be a very creative work of art.
-
- Our wrapper program is written in VAXC and is around 100 lines with
- comments. I can post the source and the documentation if anyone is interested.
-
- Hunter, would you like a copy for your VMS File server ??
-
- Tony McCracken
- ACM@nauvax.ucc.nau.edu
-